From df3c4460d6b01d4f8b33119c795c1f7ca09bee1e Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 5 Jan 2003 23:28:02 +0000 Subject: [PATCH] Move prototypes for base64_decode_atom(), base64_lines(), and base64_encode() from import.c to ssh.h, so that the implementation can see them. This necessitates ssh.h's including . Also remove a spare prototype for base64_encode_atom() from import.c. git-svn-id: svn://svn.tartarus.org/sgt/putty@2481 cda61777-01e9-0310-a592-d414129be87e --- import.c | 5 ----- ssh.h | 6 +++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/import.c b/import.c index ff438161..2ec1fa2d 100644 --- a/import.c +++ b/import.c @@ -122,11 +122,6 @@ int export_ssh2(char *filename, int type, (c) == '+' || (c) == '/' || (c) == '=' \ ) -extern int base64_decode_atom(char *atom, unsigned char *out); -extern int base64_lines(int datalen); -extern void base64_encode_atom(unsigned char *data, int n, char *out); -extern void base64_encode(FILE *fp, unsigned char *data, int datalen, int cpl); - /* * Read an ASN.1/BER identifier and length pair. * diff --git a/ssh.h b/ssh.h index 41cc5038..659a5431 100644 --- a/ssh.h +++ b/ssh.h @@ -1,3 +1,4 @@ +#include #include #include "puttymem.h" @@ -316,7 +317,10 @@ int rsakey_pubblob(char *filename, void **blob, int *bloblen); int saversakey(char *filename, struct RSAKey *key, char *passphrase); -void base64_encode_atom(unsigned char *data, int n, char *out); +extern int base64_decode_atom(char *atom, unsigned char *out); +extern int base64_lines(int datalen); +extern void base64_encode_atom(unsigned char *data, int n, char *out); +extern void base64_encode(FILE *fp, unsigned char *data, int datalen, int cpl); /* ssh2_load_userkey can return this as an error */ extern struct ssh2_userkey ssh2_wrong_passphrase; -- 2.11.0