mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 03:15:40 +00:00
Fixed ssl_pkcs11_decrypt() prototype
This commit is contained in:
parent
62087eed22
commit
495830dd1f
|
@ -3,6 +3,7 @@ PolarSSL ChangeLog
|
|||
= Branch 1.2
|
||||
Bugfix
|
||||
* Fixed memory leak in RSA as a result of introduction of blinding
|
||||
* Fixed ssl_pkcs11_decrypt() prototype
|
||||
|
||||
= Version 1.2.9 released 2013-10-01
|
||||
Changes
|
||||
|
|
|
@ -132,15 +132,18 @@ int pkcs11_sign( pkcs11_context *ctx,
|
|||
/**
|
||||
* SSL/TLS wrappers for PKCS#11 functions
|
||||
*/
|
||||
static inline int ssl_pkcs11_decrypt( void *ctx, int mode, size_t *olen,
|
||||
const unsigned char *input, unsigned char *output,
|
||||
size_t output_max_len )
|
||||
static inline int ssl_pkcs11_decrypt( void *ctx,
|
||||
int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
|
||||
int mode, size_t *olen, const unsigned char *input,
|
||||
unsigned char *output, size_t output_max_len )
|
||||
{
|
||||
((void) f_rng);
|
||||
((void) p_rng);
|
||||
return pkcs11_decrypt( (pkcs11_context *) ctx, mode, olen, input, output,
|
||||
output_max_len );
|
||||
}
|
||||
|
||||
static inline int ssl_pkcs11_sign( void *ctx,
|
||||
static inline int ssl_pkcs11_sign( void *ctx,
|
||||
int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
|
||||
int mode, int hash_id, unsigned int hashlen,
|
||||
const unsigned char *hash, unsigned char *sig )
|
||||
|
|
Loading…
Reference in a new issue