mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-10 22:35:38 +00:00
Wrap PKCS1 module with DEPRECATED_REMOVED
This commit is contained in:
parent
99fc3876ed
commit
9fc82efc6c
|
@ -47,6 +47,8 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_DEPRECATED_REMOVED)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Context for PKCS #11 private keys.
|
* Context for PKCS #11 private keys.
|
||||||
*/
|
*/
|
||||||
|
@ -56,12 +58,6 @@ typedef struct mbedtls_pkcs11_context
|
||||||
int len;
|
int len;
|
||||||
} mbedtls_pkcs11_context;
|
} mbedtls_pkcs11_context;
|
||||||
|
|
||||||
/*
|
|
||||||
* NOTE: It is not necessary to enclose the definitions with
|
|
||||||
* MBEDTLS_DEPRECATED_REMOVED because we already have a check for the full
|
|
||||||
* MBEDTLS_PKCS11_C feature that makes compilation fail even before we get
|
|
||||||
* here.
|
|
||||||
*/
|
|
||||||
#if defined(MBEDTLS_DEPRECATED_WARNING)
|
#if defined(MBEDTLS_DEPRECATED_WARNING)
|
||||||
#define MBEDTLS_DEPRECATED __attribute__((deprecated))
|
#define MBEDTLS_DEPRECATED __attribute__((deprecated))
|
||||||
#else
|
#else
|
||||||
|
@ -205,6 +201,8 @@ MBEDTLS_DEPRECATED static inline size_t mbedtls_ssl_pkcs11_key_len( void *ctx )
|
||||||
|
|
||||||
#undef MBEDTLS_DEPRECATED
|
#undef MBEDTLS_DEPRECATED
|
||||||
|
|
||||||
|
#endif /* MBEDTLS_DEPRECATED_REMOVED */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue