diff options
author | Stef Walter <stefw@gnome.org> | 2013-05-21 17:33:22 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-05-27 10:46:11 +0200 |
commit | 56fec770071713bf800e7e9f3905973703105ec5 (patch) | |
tree | 7b1cb7119299d966027f2c5c754a78d72a143bcb /common/pem.h | |
parent | cb8f2e3a04d9365121ffea0d76d8b3d47e2cc1ec (diff) |
pem: Write PEM data directly to a buffer
Diffstat (limited to 'common/pem.h')
-rw-r--r-- | common/pem.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/pem.h b/common/pem.h index d84f418..7e4ce63 100644 --- a/common/pem.h +++ b/common/pem.h @@ -35,6 +35,9 @@ #ifndef P11_PEM_H_ #define P11_PEM_H_ +#include "buffer.h" +#include "compat.h" + #include <sys/types.h> typedef void (*p11_pem_sink) (const char *type, @@ -47,9 +50,9 @@ unsigned int p11_pem_parse (const char *input, p11_pem_sink sink, void *user_data); -char * p11_pem_write (const unsigned char *contents, +bool p11_pem_write (const unsigned char *contents, size_t length, const char *type, - size_t *pem_len); + p11_buffer *buf); #endif /* P11_PEM_H_ */ |