Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
* Public Types
****************************************************************************/

typedef unsigned int (*SSL_psk_client_cb_func)(SSL *ssl,

Check failure on line 127 in crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
const char *hint,
char *identity,
unsigned int max_identity_len,
Expand Down Expand Up @@ -203,26 +203,26 @@
* Public Function Prototypes
****************************************************************************/

X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl);

Check failure on line 206 in crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found

int X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param,

Check failure on line 208 in crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
unsigned long flags);

int X509_VERIFY_PARAM_clear_hostflags(X509_VERIFY_PARAM *param,

Check failure on line 211 in crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
unsigned long flags);

int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x);

Check failure on line 214 in crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found

int SSL_CTX_add_client_CA_ASN1(SSL_CTX *ssl, int len,

Check failure on line 216 in crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
const unsigned char *d);

int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x);

Check failure on line 219 in crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found

int SSL_use_certificate(SSL *ssl, X509 *x);

Check failure on line 221 in crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found

X509 *SSL_get_certificate(const SSL *ssl);

Check failure on line 223 in crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found

int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len,

Check failure on line 225 in crypto/openssl_mbedtls_wrapper/include/openssl/ssl.h

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
const unsigned char *d);

int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);
Expand Down Expand Up @@ -251,7 +251,7 @@

OSSL_HANDSHAKE_STATE SSL_get_state(const SSL *ssl);

SSL_CTX *SSL_CTX_new(const SSL_METHOD *method, ...);
SSL_CTX *SSL_CTX_new(const SSL_METHOD *method);

void SSL_CTX_free(SSL_CTX *ctx);

Expand Down Expand Up @@ -454,6 +454,10 @@

int SSL_CTX_set_ex_data(SSL_CTX *s, int idx, void *arg);

int SSL_CTX_load_verify_file(SSL_CTX *ctx, const char *CAfile);

int SSL_CTX_load_verify_dir(SSL_CTX *ctx, const char *CApath);

int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile,
const char *CApath);

Expand Down
2 changes: 1 addition & 1 deletion crypto/openssl_mbedtls_wrapper/mbedtls/ssl_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ int SSL_get_error(const SSL *ssl, int ret_code)
return ret;
}

SSL_CTX *SSL_CTX_new(const SSL_METHOD *method, ...)
SSL_CTX *SSL_CTX_new(const SSL_METHOD *method)
{
SSL_CTX *ctx;
CERT *cert;
Expand Down
14 changes: 9 additions & 5 deletions crypto/openssl_mbedtls_wrapper/mbedtls/ssl_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,17 +368,21 @@ int ssl_pm_handshake(SSL *ssl)
}

/* OpenSSL return codes:
* 0 = did not complete, but may be retried
* 0 = The TLS/SSL handshake was not successful but was shut down
* controlled and by the specifications of the TLS/SSL protocol.
* 1 = successfully completed
* <0 = death
* <0 = The TLS/SSL handshake was not successful because a fatal error
* occurred either at the protocol level or a connection failure
* occurred.
*/

if (ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_WANT_WRITE)
{
ssl->err = ret;
ssl->err = (ret == MBEDTLS_ERR_SSL_WANT_READ) ? SSL_ERROR_WANT_READ :
SSL_ERROR_WANT_WRITE;
SSL_DEBUG(SSL_PLATFORM_ERROR_LEVEL,
"mbedtls_ssl_handshake() return -0x%x", -ret);
return 0; /* OpenSSL: did not complete but may be retried */
return -1;
}

if (ret == 0)
Expand All @@ -397,7 +401,7 @@ int ssl_pm_handshake(SSL *ssl)
{
ssl->err = ret == MBEDTLS_ERR_SSL_WANT_READ;

return 0;
return -1;
}

SSL_DEBUG(SSL_PLATFORM_ERROR_LEVEL,
Expand Down
Loading