mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Fix error code in pk.h
This commit is contained in:
@@ -76,7 +76,8 @@
|
||||
* Name ID Nr of Errors
|
||||
* PEM 1 9
|
||||
* PKCS#12 1 4 (Started from top)
|
||||
* X509 2 23
|
||||
* X509 2 25
|
||||
* PK 2 1 (Started from top)
|
||||
* DHM 3 6
|
||||
* PKCS5 3 4 (Started from top)
|
||||
* RSA 4 9
|
||||
|
@@ -27,6 +27,8 @@
|
||||
#ifndef POLARSSL_PK_H
|
||||
#define POLARSSL_PK_H
|
||||
|
||||
#define POLARSSL_ERR_PK_MALLOC_FAILED -0x2F80 /**< Memory alloation failed. */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -66,8 +68,7 @@ void pk_free( pk_context *ctx );
|
||||
* \param ctx Context to initialize
|
||||
* \param type Type of key
|
||||
*
|
||||
* \return O on success, -1 on memory allocation error
|
||||
* TODO: use appropriate error constant
|
||||
* \return O on success, or POLARSSL_ERR_PK_MALLOC_FAILED
|
||||
*/
|
||||
int pk_set_type( pk_context *ctx, pk_type_t type );
|
||||
|
||||
|
Reference in New Issue
Block a user