1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Changed pk_parse_get_pubkey() to pk_parse_subpubkey()

This commit is contained in:
Paul Bakker
2013-09-16 22:45:03 +02:00
parent ff3a518e78
commit da7711594e
4 changed files with 7 additions and 7 deletions

View File

@ -302,8 +302,8 @@ static int pk_get_pk_alg( unsigned char **p,
* algorithm AlgorithmIdentifier,
* subjectPublicKey BIT STRING }
*/
int pk_parse_get_pubkey( unsigned char **p, const unsigned char *end,
pk_context *pk )
int pk_parse_subpubkey( unsigned char **p, const unsigned char *end,
pk_context *pk )
{
int ret;
size_t len;
@ -945,7 +945,7 @@ int pk_parse_public_key( pk_context *ctx,
#endif
p = (unsigned char *) key;
ret = pk_parse_get_pubkey( &p, p + keylen, ctx );
ret = pk_parse_subpubkey( &p, p + keylen, ctx );
#if defined(POLARSSL_PEM_PARSE_C)
pem_free( &pem );