diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-03-18 19:02:17 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-05-18 10:44:08 +0100 |
commit | bde136c89f87b66d49e9d03e3b34c68b6b1d1e26 (patch) | |
tree | 9614f7e40c5d06dac817df5cfe9cf8d8d7a831cd /apps/apps.c | |
parent | d2dfd4820bf03b958bc9c3adafe0d3f112e54b2a (diff) |
Few cleanups in s_client, s_server apps.
Discard useless static engine_id
Add a const qualifier
Fix some spelling
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/apps.c b/apps/apps.c index cca42ac307..b41acced7b 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -1413,7 +1413,7 @@ int save_serial(char *serialfile, char *suffix, BIGNUM *serial, int rotate_serial(char *serialfile, char *new_suffix, char *old_suffix) { - char buf[5][BSIZE]; + char buf[2][BSIZE]; int i, j; i = strlen(serialfile) + strlen(old_suffix); @@ -1782,6 +1782,7 @@ int bio_to_mem(unsigned char **out, int maxlen, BIO *in) BIO *mem; int len, ret; unsigned char tbuf[1024]; + mem = BIO_new(BIO_s_mem()); if (mem == NULL) return -1; |