1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

mbedtls: wrapper: avoid redefine forward-typedef of X509_STORE_CTX

Some toolchains are in some C++ version mode that objects to redefinition
of a typedef even to the same thing.

Shift a couple for function declarations in the mbedtls wrapper
part so they can piggyback on just the one typedef for their
args.
This commit is contained in:
Andy Green 2019-07-29 00:37:06 +01:00
parent 00923627c0
commit 97e9bbbd0b
2 changed files with 3 additions and 5 deletions

View file

@ -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

View file

@ -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