We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92622da commit d8d31c1Copy full SHA for d8d31c1
pCloudCC/lib/mbedtls/library/pkparse.c
@@ -1243,6 +1243,17 @@ int pk_parse_public_key( pk_context *ctx,
1243
1244
ret = pk_parse_subpubkey( &p, p + keylen, ctx );
1245
1246
+#if defined(POLARSSL_RSA_C)
1247
+ if( ret != 0 )
1248
+ {
1249
+ pk_init_ctx( ctx, pk_info_from_type( POLARSSL_PK_RSA ) );
1250
+ p = (unsigned char *) key;
1251
+ ret = pk_get_rsapubkey( &p, p + keylen, pk_rsa( *ctx ) );
1252
+ if( ret != 0)
1253
+ pk_free( ctx );
1254
+ }
1255
+#endif /* POLARSSL_RSA_C */
1256
+
1257
#if defined(POLARSSL_PEM_PARSE_C)
1258
pem_free( &pem );
1259
#endif
0 commit comments