1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

- Moved storing of a printable serial into a separate function

This commit is contained in:
Paul Bakker
2011-01-16 21:34:59 +00:00
parent 72f6266f02
commit dd47699ba5
2 changed files with 41 additions and 10 deletions

View File

@@ -593,6 +593,19 @@ int x509parse_dhmfile( dhm_context *rsa, const char *path );
*/
int x509parse_dn_gets( char *buf, size_t size, const x509_name *dn );
/**
* \brief Store the certificate serial in printable form into buf;
* no more than size characters will be written.
*
* \param buf Buffer to write to
* \param size Maximum size of buffer
* \param serial The X509 serial to represent
*
* \return The amount of data written to the buffer, or -1 in
* case of an error.
*/
int x509parse_serial_gets( char *buf, size_t size, const x509_buf *serial );
/**
* \brief Returns an informational string about the
* certificate.