mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 02:25:40 +01:00
Fix compile errors in pkcs11.c
This commit is contained in:
parent
c241b03527
commit
3a89559d71
@ -40,6 +40,8 @@
|
|||||||
#define mbedtls_free free
|
#define mbedtls_free free
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
void mbedtls_pkcs11_init( mbedtls_pkcs11_context *ctx )
|
void mbedtls_pkcs11_init( mbedtls_pkcs11_context *ctx )
|
||||||
{
|
{
|
||||||
memset( ctx, 0, sizeof( mbedtls_pkcs11_context ) );
|
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 )
|
if( priv_key == NULL )
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if( 0 != mbedtls_pkcs11_x509_cert_init( &cert, pkcs11_cert ) )
|
if( 0 != mbedtls_pkcs11_x509_cert_bind( &cert, pkcs11_cert ) )
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
priv_key->len = mbedtls_pk_get_len( &cert.pk );
|
priv_key->len = mbedtls_pk_get_len( &cert.pk );
|
||||||
|
Loading…
Reference in New Issue
Block a user