From 0d9a7e3c2ec645f0913b190851e0e264d6dbe0b6 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 23 Jan 2007 08:14:14 +0000 Subject: [PATCH] Add prototypes for pem.c functions. --- src/libssh2_priv.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/libssh2_priv.h b/src/libssh2_priv.h index ad11eed..8be69e9 100644 --- a/src/libssh2_priv.h +++ b/src/libssh2_priv.h @@ -42,6 +42,8 @@ #include "libssh2_config.h" #include "libssh2.h" +#include + #ifndef WIN32 #include #endif @@ -466,4 +468,14 @@ LIBSSH2_MAC_METHOD **libssh2_mac_methods(void); /* Language API doesn't exist yet. Just act like we've agreed on a language */ #define libssh2_kex_agree_lang(session, endpoint, str, str_len) 0 +/* pem.c */ +int _libssh2_pem_parse (LIBSSH2_SESSION *session, + const char *headerbegin, + const char *headerend, + FILE *fp, + char **data, unsigned int *datalen); +int _libssh2_pem_decode_sequence (char **data, unsigned int *datalen); +int _libssh2_pem_decode_integer (char **data, unsigned int *datalen, + char **i, unsigned int *ilen); + #endif /* LIBSSH2_H */