Changed pk_parse_get_pubkey() to pk_parse_subpubkey()
diff --git a/library/x509_crt.c b/library/x509_crt.c
index 3c88b5e..8a3f13f 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -663,7 +663,7 @@
     /*
      * SubjectPublicKeyInfo
      */
-    if( ( ret = pk_parse_get_pubkey( &p, end, &crt->pk ) ) != 0 )
+    if( ( ret = pk_parse_subpubkey( &p, end, &crt->pk ) ) != 0 )
     {
         x509_crt_free( crt );
         return( ret );