mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-29 17:17:04 +00:00
Fix deprecated docs for PKCS1
This commit is contained in:
parent
0d6e108b13
commit
99fc3876ed
|
@ -776,9 +776,9 @@
|
||||||
|
|
||||||
#if defined(MBEDTLS_PKCS11_C)
|
#if defined(MBEDTLS_PKCS11_C)
|
||||||
#if defined(MBEDTLS_DEPRECATED_REMOVED)
|
#if defined(MBEDTLS_DEPRECATED_REMOVED)
|
||||||
#error "MBEDTLS_PKCS11_C is deprecated and will likely be removed in a future version of Mbed TLS"
|
#error "MBEDTLS_PKCS11_C is deprecated and will be removed in a future version of Mbed TLS"
|
||||||
#elif defined(MBEDTLS_DEPRECATED_WARNING)
|
#elif defined(MBEDTLS_DEPRECATED_WARNING)
|
||||||
#warning "MBEDTLS_PKCS11_C is deprecated and will likely be removed in a future version of Mbed TLS"
|
#warning "MBEDTLS_PKCS11_C is deprecated and will be removed in a future version of Mbed TLS"
|
||||||
#endif
|
#endif
|
||||||
#endif /* MBEDTLS_PKCS11_C */
|
#endif /* MBEDTLS_PKCS11_C */
|
||||||
|
|
||||||
|
|
|
@ -2814,8 +2814,8 @@
|
||||||
*
|
*
|
||||||
* Enable wrapper for PKCS#11 smartcard support.
|
* Enable wrapper for PKCS#11 smartcard support.
|
||||||
*
|
*
|
||||||
* \deprecated This option is deprecated and will likely be removed in a
|
* \deprecated This option is deprecated and will be removed in a future
|
||||||
* future version of Mbed TLS.
|
* version of Mbed TLS.
|
||||||
*
|
*
|
||||||
* Module: library/pkcs11.c
|
* Module: library/pkcs11.c
|
||||||
* Caller: library/pk.c
|
* Caller: library/pk.c
|
||||||
|
|
|
@ -72,18 +72,16 @@ typedef struct mbedtls_pkcs11_context
|
||||||
* Initialize a mbedtls_pkcs11_context.
|
* Initialize a mbedtls_pkcs11_context.
|
||||||
* (Just making memory references valid.)
|
* (Just making memory references valid.)
|
||||||
*
|
*
|
||||||
* \deprecated It is deprecated and discouraged to call this function
|
* \deprecated This function is deprecated and will be removed in a
|
||||||
* as future versions of the library are likely to remove
|
* future version of the library.
|
||||||
* it.
|
|
||||||
*/
|
*/
|
||||||
MBEDTLS_DEPRECATED void mbedtls_pkcs11_init( mbedtls_pkcs11_context *ctx );
|
MBEDTLS_DEPRECATED void mbedtls_pkcs11_init( mbedtls_pkcs11_context *ctx );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fill in a mbed TLS certificate, based on the given PKCS11 helper certificate.
|
* Fill in a mbed TLS certificate, based on the given PKCS11 helper certificate.
|
||||||
*
|
*
|
||||||
* \deprecated It is deprecated and discouraged to call this function
|
* \deprecated This function is deprecated and will be removed in a
|
||||||
* as future versions of the library are likely to remove
|
* future version of the library.
|
||||||
* it.
|
|
||||||
*
|
*
|
||||||
* \param cert X.509 certificate to fill
|
* \param cert X.509 certificate to fill
|
||||||
* \param pkcs11h_cert PKCS #11 helper certificate
|
* \param pkcs11h_cert PKCS #11 helper certificate
|
||||||
|
@ -98,9 +96,8 @@ MBEDTLS_DEPRECATED int mbedtls_pkcs11_x509_cert_bind( mbedtls_x509_crt *cert,
|
||||||
* mbedtls_pkcs11_context will take over control of the certificate, freeing it when
|
* mbedtls_pkcs11_context will take over control of the certificate, freeing it when
|
||||||
* done.
|
* done.
|
||||||
*
|
*
|
||||||
* \deprecated It is deprecated and discouraged to call this function
|
* \deprecated This function is deprecated and will be removed in a
|
||||||
* as future versions of the library are likely to remove
|
* future version of the library.
|
||||||
* it.
|
|
||||||
*
|
*
|
||||||
* \param priv_key Private key structure to fill.
|
* \param priv_key Private key structure to fill.
|
||||||
* \param pkcs11_cert PKCS #11 helper certificate
|
* \param pkcs11_cert PKCS #11 helper certificate
|
||||||
|
@ -115,9 +112,8 @@ MBEDTLS_DEPRECATED int mbedtls_pkcs11_priv_key_bind(
|
||||||
* Free the contents of the given private key context. Note that the structure
|
* Free the contents of the given private key context. Note that the structure
|
||||||
* itself is not freed.
|
* itself is not freed.
|
||||||
*
|
*
|
||||||
* \deprecated It is deprecated and discouraged to call this function
|
* \deprecated This function is deprecated and will be removed in a
|
||||||
* as future versions of the library are likely to remove
|
* future version of the library.
|
||||||
* it.
|
|
||||||
*
|
*
|
||||||
* \param priv_key Private key structure to cleanup
|
* \param priv_key Private key structure to cleanup
|
||||||
*/
|
*/
|
||||||
|
@ -128,8 +124,8 @@ MBEDTLS_DEPRECATED void mbedtls_pkcs11_priv_key_free(
|
||||||
* \brief Do an RSA private key decrypt, then remove the message
|
* \brief Do an RSA private key decrypt, then remove the message
|
||||||
* padding
|
* padding
|
||||||
*
|
*
|
||||||
* \deprecated It is deprecated and discouraged to call this function as
|
* \deprecated This function is deprecated and will be removed in a future
|
||||||
* future versions of the library are likely to remove it.
|
* version of the library.
|
||||||
*
|
*
|
||||||
* \param ctx PKCS #11 context
|
* \param ctx PKCS #11 context
|
||||||
* \param mode must be MBEDTLS_RSA_PRIVATE, for compatibility with rsa.c's signature
|
* \param mode must be MBEDTLS_RSA_PRIVATE, for compatibility with rsa.c's signature
|
||||||
|
@ -153,8 +149,8 @@ MBEDTLS_DEPRECATED int mbedtls_pkcs11_decrypt( mbedtls_pkcs11_context *ctx,
|
||||||
/**
|
/**
|
||||||
* \brief Do a private RSA to sign a message digest
|
* \brief Do a private RSA to sign a message digest
|
||||||
*
|
*
|
||||||
* \deprecated It is deprecated and discouraged to call this function as
|
* \deprecated This function is deprecated and will be removed in a future
|
||||||
* future versions of the library are likely to remove it.
|
* version of the library.
|
||||||
*
|
*
|
||||||
* \param ctx PKCS #11 context
|
* \param ctx PKCS #11 context
|
||||||
* \param mode must be MBEDTLS_RSA_PRIVATE, for compatibility with rsa.c's signature
|
* \param mode must be MBEDTLS_RSA_PRIVATE, for compatibility with rsa.c's signature
|
||||||
|
@ -179,8 +175,8 @@ MBEDTLS_DEPRECATED int mbedtls_pkcs11_sign( mbedtls_pkcs11_context *ctx,
|
||||||
/**
|
/**
|
||||||
* SSL/TLS wrappers for PKCS#11 functions
|
* SSL/TLS wrappers for PKCS#11 functions
|
||||||
*
|
*
|
||||||
* \deprecated It is deprecated and discouraged to call these functions as
|
* \deprecated This function is deprecated and will be removed in a future
|
||||||
* future versions of the library are likely to remove them.
|
* version of the library.
|
||||||
*/
|
*/
|
||||||
MBEDTLS_DEPRECATED static inline int mbedtls_ssl_pkcs11_decrypt( void *ctx,
|
MBEDTLS_DEPRECATED static inline int mbedtls_ssl_pkcs11_decrypt( void *ctx,
|
||||||
int mode, size_t *olen,
|
int mode, size_t *olen,
|
||||||
|
|
Loading…
Reference in a new issue