From 3a89559d715f5b805384073af421430219eeafce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 27 May 2015 17:09:21 +0200 Subject: [PATCH] Fix compile errors in pkcs11.c --- library/pkcs11.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/pkcs11.c b/library/pkcs11.c index b3a3be6c3..b04d9691a 100644 --- a/library/pkcs11.c +++ b/library/pkcs11.c @@ -40,6 +40,8 @@ #define mbedtls_free free #endif +#include + void mbedtls_pkcs11_init( mbedtls_pkcs11_context *ctx ) { memset( ctx, 0, sizeof( mbedtls_pkcs11_context ) ); @@ -105,7 +107,7 @@ int mbedtls_pkcs11_priv_key_bind( mbedtls_pkcs11_context *priv_key, if( priv_key == NULL ) goto cleanup; - if( 0 != mbedtls_pkcs11_x509_cert_init( &cert, pkcs11_cert ) ) + if( 0 != mbedtls_pkcs11_x509_cert_bind( &cert, pkcs11_cert ) ) goto cleanup; priv_key->len = mbedtls_pk_get_len( &cert.pk );