From 917e754e9b992282d6ae868cd02dc86a77bbffe4 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Fri, 25 Mar 2011 14:23:36 +0000
Subject: [PATCH] - Added declaration of x509parse_public_key() and
x509parse_public_keyfile() to the x509 header file
---
include/polarssl/x509.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/include/polarssl/x509.h b/include/polarssl/x509.h
index c9648ba69..e6d0c34f5 100644
--- a/include/polarssl/x509.h
+++ b/include/polarssl/x509.h
@@ -551,6 +551,30 @@ int x509parse_key( rsa_context *rsa,
int x509parse_keyfile( rsa_context *rsa, const char *path,
const char *password );
+/** \ingroup x509_module */
+/**
+ * \brief Parse a public RSA key
+ *
+ * \param rsa RSA context to be initialized
+ * \param key input buffer
+ * \param keylen size of the buffer
+ *
+ * \return 0 if successful, or a specific X509 or PEM error code
+ */
+int x509parse_public_key( rsa_context *rsa,
+ const unsigned char *key, int keylen );
+
+/** \ingroup x509_module */
+/**
+ * \brief Load and parse a public RSA key
+ *
+ * \param rsa RSA context to be initialized
+ * \param path filename to read the private key from
+ *
+ * \return 0 if successful, or a specific X509 or PEM error code
+ */
+int x509parse_public_keyfile( rsa_context *rsa, const char *path );
+
/** \ingroup x509_module */
/**
* \brief Parse DHM parameters