mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Changed pk_parse_get_pubkey() to pk_parse_subpubkey()
This commit is contained in:
parent
ff3a518e78
commit
da7711594e
4 changed files with 7 additions and 7 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue