tor  0.4.1.0-alpha-dev
pem.h
Go to the documentation of this file.
1 /* Copyright (c) 2001, Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
13 #ifndef TOR_PEM_H
14 #define TOR_PEM_H
15 
16 #include "orconfig.h"
17 #include <stddef.h>
18 #include "lib/cc/torint.h"
19 
20 size_t pem_encoded_size(size_t src_len, const char *objtype);
21 int pem_encode(char *dest, size_t destlen, const uint8_t *src, size_t srclen,
22  const char *objtype);
23 int pem_decode(uint8_t *dest, size_t destlen, const char *src, size_t srclen,
24  const char *objtype);
25 
26 #endif
Integer definitions used throughout Tor.
int pem_encode(char *dest, size_t destlen, const uint8_t *src, size_t srclen, const char *objtype)
Definition: pem.c:49
int pem_decode(uint8_t *dest, size_t destlen, const char *src, size_t srclen, const char *objtype)
Definition: pem.c:80
size_t pem_encoded_size(size_t src_len, const char *objtype)
Definition: pem.c:33