summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinoguchi <>2018-01-28 09:21:34 +0000
committerinoguchi <>2018-01-28 09:21:34 +0000
commit10dfde59e8d07a40881ee15f9402c6012597422e (patch)
tree12c08641cc5d9a7244675fd1f0214d78dac34095 /src
parent9995aadc83fe5c1fdcdabd24dec09d459ebe9a6a (diff)
downloadopenbsd-10dfde59e8d07a40881ee15f9402c6012597422e.tar.gz
openbsd-10dfde59e8d07a40881ee15f9402c6012597422e.tar.bz2
openbsd-10dfde59e8d07a40881ee15f9402c6012597422e.zip
Initialize variables to avoid compiler warnings
ok jsing@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/ssl_srvr.c4
-rw-r--r--src/usr.bin/openssl/pkeyutl.c4
-rw-r--r--src/usr.bin/openssl/s_server.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c
index 6450623d4a..f1a0c9ae03 100644
--- a/src/lib/libssl/ssl_srvr.c
+++ b/src/lib/libssl/ssl_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_srvr.c,v 1.27 2018/01/27 15:30:05 jsing Exp $ */ 1/* $OpenBSD: ssl_srvr.c,v 1.28 2018/01/28 09:21:34 inoguchi Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -175,7 +175,7 @@ ssl3_accept(SSL *s)
175 unsigned long alg_k; 175 unsigned long alg_k;
176 int ret = -1; 176 int ret = -1;
177 int new_state, state, skip = 0; 177 int new_state, state, skip = 0;
178 int listen; 178 int listen = 0;
179 179
180 ERR_clear_error(); 180 ERR_clear_error();
181 errno = 0; 181 errno = 0;
diff --git a/src/usr.bin/openssl/pkeyutl.c b/src/usr.bin/openssl/pkeyutl.c
index 4752b4c79a..dd52e93dfa 100644
--- a/src/usr.bin/openssl/pkeyutl.c
+++ b/src/usr.bin/openssl/pkeyutl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pkeyutl.c,v 1.11 2017/01/20 08:57:12 deraadt Exp $ */ 1/* $OpenBSD: pkeyutl.c,v 1.12 2018/01/28 09:21:34 inoguchi Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -95,7 +95,7 @@ pkeyutl_main(int argc, char **argv)
95 int keysize = -1; 95 int keysize = -1;
96 96
97 unsigned char *buf_in = NULL, *buf_out = NULL, *sig = NULL; 97 unsigned char *buf_in = NULL, *buf_out = NULL, *sig = NULL;
98 size_t buf_outlen; 98 size_t buf_outlen = 0;
99 int buf_inlen = 0, siglen = -1; 99 int buf_inlen = 0, siglen = -1;
100 100
101 int ret = 1, rv = -1; 101 int ret = 1, rv = -1;
diff --git a/src/usr.bin/openssl/s_server.c b/src/usr.bin/openssl/s_server.c
index 7254109fba..ccab5b3280 100644
--- a/src/usr.bin/openssl/s_server.c
+++ b/src/usr.bin/openssl/s_server.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s_server.c,v 1.27 2017/08/12 21:04:33 jsing Exp $ */ 1/* $OpenBSD: s_server.c,v 1.28 2018/01/28 09:21:34 inoguchi Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -404,7 +404,7 @@ cert_status_cb(SSL * s, void *arg)
404{ 404{
405 tlsextstatusctx *srctx = arg; 405 tlsextstatusctx *srctx = arg;
406 BIO *err = srctx->err; 406 BIO *err = srctx->err;
407 char *host, *port, *path; 407 char *host = NULL, *port = NULL, *path = NULL;
408 int use_ssl; 408 int use_ssl;
409 unsigned char *rspder = NULL; 409 unsigned char *rspder = NULL;
410 int rspderlen; 410 int rspderlen;