Rename pkcs11_xxx_init() to bind()

This commit is contained in:
Manuel Pégourié-Gonnard 2015-04-29 01:10:10 +02:00
parent 69a69cc5ae
commit eab147c4d0
5 changed files with 23 additions and 9 deletions

View file

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