diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/a_strex.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_strex.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libcrypto/asn1/a_strex.c b/src/lib/libcrypto/asn1/a_strex.c index 128aa7e772..8dab29dca1 100644 --- a/src/lib/libcrypto/asn1/a_strex.c +++ b/src/lib/libcrypto/asn1/a_strex.c | |||
@@ -77,8 +77,8 @@ | |||
77 | /* Three IO functions for sending data to memory, a BIO and | 77 | /* Three IO functions for sending data to memory, a BIO and |
78 | * and a FILE pointer. | 78 | * and a FILE pointer. |
79 | */ | 79 | */ |
80 | 80 | #if 0 /* never used */ | |
81 | int send_mem_chars(void *arg, const void *buf, int len) | 81 | static int send_mem_chars(void *arg, const void *buf, int len) |
82 | { | 82 | { |
83 | unsigned char **out = arg; | 83 | unsigned char **out = arg; |
84 | if(!out) return 1; | 84 | if(!out) return 1; |
@@ -86,15 +86,16 @@ int send_mem_chars(void *arg, const void *buf, int len) | |||
86 | *out += len; | 86 | *out += len; |
87 | return 1; | 87 | return 1; |
88 | } | 88 | } |
89 | #endif | ||
89 | 90 | ||
90 | int send_bio_chars(void *arg, const void *buf, int len) | 91 | static int send_bio_chars(void *arg, const void *buf, int len) |
91 | { | 92 | { |
92 | if(!arg) return 1; | 93 | if(!arg) return 1; |
93 | if(BIO_write(arg, buf, len) != len) return 0; | 94 | if(BIO_write(arg, buf, len) != len) return 0; |
94 | return 1; | 95 | return 1; |
95 | } | 96 | } |
96 | 97 | ||
97 | int send_fp_chars(void *arg, const void *buf, int len) | 98 | static int send_fp_chars(void *arg, const void *buf, int len) |
98 | { | 99 | { |
99 | if(!arg) return 1; | 100 | if(!arg) return 1; |
100 | if(fwrite(buf, 1, len, arg) != (unsigned int)len) return 0; | 101 | if(fwrite(buf, 1, len, arg) != (unsigned int)len) return 0; |
@@ -240,7 +241,7 @@ static int do_hex_dump(char_io *io_ch, void *arg, unsigned char *buf, int buflen | |||
240 | * #01234 format. | 241 | * #01234 format. |
241 | */ | 242 | */ |
242 | 243 | ||
243 | int do_dump(unsigned long lflags, char_io *io_ch, void *arg, ASN1_STRING *str) | 244 | static int do_dump(unsigned long lflags, char_io *io_ch, void *arg, ASN1_STRING *str) |
244 | { | 245 | { |
245 | /* Placing the ASN1_STRING in a temp ASN1_TYPE allows | 246 | /* Placing the ASN1_STRING in a temp ASN1_TYPE allows |
246 | * the DER encoding to readily obtained | 247 | * the DER encoding to readily obtained |