mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-02-19 00:39:46 +00:00
Rename pkcs11_xxx_init() to bind()
This commit is contained in:
@@ -2256,9 +2256,9 @@
|
||||
#define pkcs11_context mbedtls_pkcs11_context
|
||||
#define pkcs11_decrypt mbedtls_pkcs11_decrypt
|
||||
#define pkcs11_priv_key_free mbedtls_pkcs11_priv_key_free
|
||||
#define pkcs11_priv_key_init mbedtls_pkcs11_priv_key_init
|
||||
#define pkcs11_priv_key_init mbedtls_pkcs11_priv_key_bind
|
||||
#define pkcs11_sign mbedtls_pkcs11_sign
|
||||
#define pkcs11_x509_cert_init mbedtls_pkcs11_x509_cert_init
|
||||
#define pkcs11_x509_cert_init mbedtls_pkcs11_x509_cert_bind
|
||||
#define pkcs12_derivation mbedtls_pkcs12_derivation
|
||||
#define pkcs12_pbe mbedtls_pkcs12_pbe
|
||||
#define pkcs12_pbe_sha1_rc4_128 mbedtls_pkcs12_pbe_sha1_rc4_128
|
||||
|
||||
@@ -58,6 +58,12 @@ typedef struct {
|
||||
int len;
|
||||
} mbedtls_pkcs11_context;
|
||||
|
||||
/**
|
||||
* Initialize a mbetls_pkcs11_context.
|
||||
* (Just making memory references valid.)
|
||||
*/
|
||||
void mbedtls_pkcs11_init( mbedtls_pkcs11_context *ctx );
|
||||
|
||||
/**
|
||||
* Fill in a mbed TLS certificate, based on the given PKCS11 helper certificate.
|
||||
*
|
||||
@@ -66,10 +72,10 @@ typedef struct {
|
||||
*
|
||||
* \return 0 on success.
|
||||
*/
|
||||
int mbedtls_pkcs11_x509_cert_init( mbedtls_x509_crt *cert, pkcs11h_certificate_t pkcs11h_cert );
|
||||
int mbedtls_pkcs11_x509_cert_bind( mbedtls_x509_crt *cert, pkcs11h_certificate_t pkcs11h_cert );
|
||||
|
||||
/**
|
||||
* Initialise a mbedtls_pkcs11_context, storing the given certificate. Note that the
|
||||
* Set up a mbedtls_pkcs11_context storing the given certificate. Note that the
|
||||
* mbedtls_pkcs11_context will take over control of the certificate, freeing it when
|
||||
* done.
|
||||
*
|
||||
@@ -78,7 +84,7 @@ int mbedtls_pkcs11_x509_cert_init( mbedtls_x509_crt *cert, pkcs11h_certificate_t
|
||||
*
|
||||
* \return 0 on success
|
||||
*/
|
||||
int mbedtls_pkcs11_priv_key_init( mbedtls_pkcs11_context *priv_key,
|
||||
int mbedtls_pkcs11_priv_key_bind( mbedtls_pkcs11_context *priv_key,
|
||||
pkcs11h_certificate_t pkcs11_cert );
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user