Split x509_csr_parse_der() out of x509_csr_parse()

This commit is contained in:
Manuel Pégourié-Gonnard 2014-06-16 18:06:48 +02:00
parent 15f58a86f7
commit f3b47243df
3 changed files with 69 additions and 41 deletions

View file

@ -85,7 +85,19 @@ x509write_csr;
#if defined(POLARSSL_X509_CSR_PARSE_C)
/**
* \brief Load a Certificate Signing Request (CSR)
* \brief Load a Certificate Signing Request (CSR) in DER format
*
* \param csr CSR context to fill
* \param buf buffer holding the CRL data
* \param buflen size of the buffer
*
* \return 0 if successful, or a specific X509 error code
*/
int x509_csr_parse_der( x509_csr *csr,
const unsigned char *buf, size_t buflen );
/**
* \brief Load a Certificate Signing Request (CSR), DER or PEM format
*
* \param csr CSR context to fill
* \param buf buffer holding the CRL data