Changed pk_parse_get_pubkey() to pk_parse_subpubkey()
diff --git a/library/x509_csr.c b/library/x509_csr.c
index e4b0517..aeddeb5 100644
--- a/library/x509_csr.c
+++ b/library/x509_csr.c
@@ -229,7 +229,7 @@
     /*
      *  subjectPKInfo SubjectPublicKeyInfo
      */
-    if( ( ret = pk_parse_get_pubkey( &p, end, &csr->pk ) ) != 0 )
+    if( ( ret = pk_parse_subpubkey( &p, end, &csr->pk ) ) != 0 )
     {
         x509_csr_free( csr );
         return( ret );