Changed pk_parse_get_pubkey() to pk_parse_subpubkey()
diff --git a/library/pkparse.c b/library/pkparse.c
index 5a58abe..f123b6c 100644
--- a/library/pkparse.c
+++ b/library/pkparse.c
@@ -302,8 +302,8 @@
  *       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 @@
 #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 );