52#if !defined(MBEDTLS_CONFIG_FILE)
55#include MBEDTLS_CONFIG_FILE
66#define MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT -0x1080
67#define MBEDTLS_ERR_PEM_INVALID_DATA -0x1100
68#define MBEDTLS_ERR_PEM_ALLOC_FAILED -0x1180
69#define MBEDTLS_ERR_PEM_INVALID_ENC_IV -0x1200
70#define MBEDTLS_ERR_PEM_UNKNOWN_ENC_ALG -0x1280
71#define MBEDTLS_ERR_PEM_PASSWORD_REQUIRED -0x1300
72#define MBEDTLS_ERR_PEM_PASSWORD_MISMATCH -0x1380
73#define MBEDTLS_ERR_PEM_FEATURE_UNAVAILABLE -0x1400
74#define MBEDTLS_ERR_PEM_BAD_INPUT_DATA -0x1480
81#if defined(MBEDTLS_PEM_PARSE_C)
85typedef struct mbedtls_pem_context
98void mbedtls_pem_init( mbedtls_pem_context *
ctx );
122int mbedtls_pem_read_buffer( mbedtls_pem_context *
ctx,
const char *
header,
const char *footer,
123 const unsigned char *
data,
124 const unsigned char *
pwd,
125 size_t pwdlen,
size_t *use_len );
132void mbedtls_pem_free( mbedtls_pem_context *
ctx );
135#if defined(MBEDTLS_PEM_WRITE_C)
162int mbedtls_pem_write_buffer(
const char *
header,
const char *footer,
163 const unsigned char *der_data,
size_t der_len,
164 unsigned char *
buf,
size_t buf_len,
size_t *olen );
void pwd(int argc, const char *argv[])
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf