diff options
| author | Matthew Parlane <parlane@gmail.com> | 2013-08-25 13:02:34 +1200 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2013-08-25 13:02:34 +1200 |
| commit | c4dec3fb3af2f4adbeb46ff4ef59c935c87bc772 (patch) | |
| tree | b9349cf101c880ca336e5c852e818d8ec71f6527 /Source | |
| parent | 73be79f4e0ee181792e9c3b2c8844e6411b5cca7 (diff) | |
Remove debug verify cert code.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net_ssl.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net_ssl.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net_ssl.cpp index 2c38d1b680..4dbad637b2 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net_ssl.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net_ssl.cpp @@ -97,48 +97,6 @@ bool CWII_IPC_HLE_Device_net_ssl::IOCtl(u32 _CommandAddress) return true; } - - -static int -_verify_certificate_callback (void *data, x509_cert *crt, int depth, int *flags) -{ - char buf[1024]; - ((void) data); - std::string verify_info = StringFromFormat( - "Verify requested for (Depth %d):\n", depth); - - x509parse_cert_info( buf, sizeof( buf ) - 1, "", crt ); - verify_info += buf; - - if ( ( (*flags) & BADCERT_EXPIRED ) != 0 ) - verify_info += " ! server certificate has expired"; - - if ( ( (*flags) & BADCERT_REVOKED ) != 0 ) - verify_info += " ! server certificate has been revoked"; - - if ( ( (*flags) & BADCERT_CN_MISMATCH ) != 0 ) - verify_info += " ! CN mismatch\n"; - - if ( ( (*flags) & BADCERT_NOT_TRUSTED ) != 0 ) - verify_info += " ! self-signed or not signed by a trusted CA\n"; - - if ( ( (*flags) & BADCRL_NOT_TRUSTED ) != 0 ) - verify_info += " ! CRL not trusted\n"; - - if ( ( (*flags) & BADCRL_EXPIRED ) != 0 ) - verify_info += " ! CRL expired\n"; - - if ( ( (*flags) & BADCERT_OTHER ) != 0 ) - verify_info += " ! other (unknown) flag\n"; - - if ( ( *flags ) == 0 ) - verify_info += " This certificate has no flags\n"; - - WARN_LOG(WII_IPC_SSL, "%s", verify_info.c_str() ); - - return( 0 ); -} - bool CWII_IPC_HLE_Device_net_ssl::IOCtlV(u32 _CommandAddress) { u32 ReturnValue = 0; @@ -212,8 +170,6 @@ bool CWII_IPC_HLE_Device_net_ssl::IOCtlV(u32 _CommandAddress) ssl_set_ciphersuites(&_SSL[sslID].ctx, ssl_default_ciphersuites); ssl_set_session(&_SSL[sslID].ctx, &_SSL[sslID].session); - ssl_set_verify(&_SSL[sslID].ctx, _verify_certificate_callback, NULL); - ssl_set_endpoint(&_SSL[sslID].ctx, SSL_IS_CLIENT); ssl_set_authmode(&_SSL[sslID].ctx, SSL_VERIFY_NONE); ssl_set_renegotiation(&_SSL[sslID].ctx, SSL_RENEGOTIATION_ENABLED); |
