diff --git a/lib/tls/mbedtls/wrapper/include/internal/ssl_types.h b/lib/tls/mbedtls/wrapper/include/internal/ssl_types.h index 324336549..1f5f94884 100644 --- a/lib/tls/mbedtls/wrapper/include/internal/ssl_types.h +++ b/lib/tls/mbedtls/wrapper/include/internal/ssl_types.h @@ -301,6 +301,9 @@ struct pkey_method_st { #define OPENSSL_NPN_NEGOTIATED 1 +int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx); +int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx); + #ifdef __cplusplus } #endif diff --git a/lib/tls/mbedtls/wrapper/include/internal/x509_vfy.h b/lib/tls/mbedtls/wrapper/include/internal/x509_vfy.h index e57e42bde..d5b0d1a21 100644 --- a/lib/tls/mbedtls/wrapper/include/internal/x509_vfy.h +++ b/lib/tls/mbedtls/wrapper/include/internal/x509_vfy.h @@ -104,11 +104,6 @@ #define X509_V_ERR_PROXY_SUBJECT_NAME_VIOLATION 72 -typedef void X509_STORE_CTX; -int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx); -int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx); - - #ifdef __cplusplus } #endif