mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 08:16:33 +01:00
Rename pkcs11_xxx_init() to bind()
This commit is contained in:
parent
69a69cc5ae
commit
eab147c4d0
5 changed files with 23 additions and 9 deletions
|
|
@ -40,7 +40,12 @@
|
|||
#define mbedtls_free free
|
||||
#endif
|
||||
|
||||
int mbedtls_pkcs11_x509_cert_init( mbedtls_x509_crt *cert, pkcs11h_certificate_t pkcs11_cert )
|
||||
void mbedtls_pkcs11_init( mbedtls_pkcs11_context *ctx )
|
||||
{
|
||||
memset( ctx, 0, sizeof( mbedtls_pkcs11_context ) );
|
||||
}
|
||||
|
||||
int mbedtls_pkcs11_x509_cert_bind( mbedtls_x509_crt *cert, pkcs11h_certificate_t pkcs11_cert )
|
||||
{
|
||||
int ret = 1;
|
||||
unsigned char *cert_blob = NULL;
|
||||
|
|
@ -89,7 +94,7 @@ cleanup:
|
|||
}
|
||||
|
||||
|
||||
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 )
|
||||
{
|
||||
int ret = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue