diff options
author | Richard Levitte <levitte@openssl.org> | 2004-01-29 09:31:51 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-01-29 09:31:51 +0000 |
commit | 302b9b0dcd435bd74e59cc5b6d7024592e8090e3 (patch) | |
tree | eb65a904034dbe32950354ff5e77011528fe6f7c | |
parent | 658cd50bbe206b90a6d167563f2b95f8c53e50fb (diff) |
send_*_chars() and do_dump() are private functions and should
therefore be static. Furthermore, send_mem_chars() is unused, so I
#if 0'd it.
-rw-r--r-- | crypto/asn1/a_strex.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/crypto/asn1/a_strex.c b/crypto/asn1/a_strex.c index 91fcbb4335..309abc727b 100644 --- a/crypto/asn1/a_strex.c +++ b/crypto/asn1/a_strex.c @@ -78,7 +78,8 @@ * and a FILE pointer. */ -int send_mem_chars(void *arg, const void *buf, int len) +#if 0 /* Not used */ +static int send_mem_chars(void *arg, const void *buf, int len) { unsigned char **out = arg; if(!out) return 1; @@ -86,15 +87,16 @@ int send_mem_chars(void *arg, const void *buf, int len) *out += len; return 1; } +#endif -int send_bio_chars(void *arg, const void *buf, int len) +static int send_bio_chars(void *arg, const void *buf, int len) { if(!arg) return 1; if(BIO_write(arg, buf, len) != len) return 0; return 1; } -int send_fp_chars(void *arg, const void *buf, int len) +static int send_fp_chars(void *arg, const void *buf, int len) { if(!arg) return 1; if(fwrite(buf, 1, len, arg) != (unsigned int)len) return 0; @@ -240,7 +242,8 @@ static int do_hex_dump(char_io *io_ch, void *arg, unsigned char *buf, int buflen * #01234 format. */ -int do_dump(unsigned long lflags, char_io *io_ch, void *arg, ASN1_STRING *str) +static int do_dump(unsigned long lflags, char_io *io_ch, void *arg, + ASN1_STRING *str) { /* Placing the ASN1_STRING in a temp ASN1_TYPE allows * the DER encoding to readily obtained |