Tor
0.4.7.0-alpha-dev
|
Implement a trivial version of PEM encoding, for use with NSS. More...
#include "orconfig.h"
#include "lib/encoding/pem.h"
#include "lib/ctime/di_ops.h"
#include "lib/encoding/binascii.h"
#include "lib/log/util_bug.h"
#include "lib/malloc/malloc.h"
#include "lib/string/printf.h"
#include "lib/string/util_string.h"
#include <string.h>
Go to the source code of this file.
Functions | |
size_t | pem_encoded_size (size_t src_len, const char *objtype) |
int | pem_encode (char *dest, size_t destlen, const uint8_t *src, size_t srclen, const char *objtype) |
int | pem_decode (uint8_t *dest, size_t destlen, const char *src, size_t srclen, const char *objtype) |
Implement a trivial version of PEM encoding, for use with NSS.
We deliberately do not support any encryption here.
Definition in file pem.c.
int pem_decode | ( | uint8_t * | dest, |
size_t | destlen, | ||
const char * | src, | ||
size_t | srclen, | ||
const char * | objtype | ||
) |
int pem_encode | ( | char * | dest, |
size_t | destlen, | ||
const uint8_t * | src, | ||
size_t | srclen, | ||
const char * | objtype | ||
) |