summaryrefslogtreecommitdiff
path: root/lib/libssl
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-09-10 15:56:27 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-09-10 15:56:27 +0000
commit4b185770bb48b33b3458575b4dd273d9e9e5b60a (patch)
treefdb63280eeb935a98b2cf72fae41e177686c15ea /lib/libssl
parent3a518e4ad573c57d1cc478fe3257cbd80f7098fc (diff)
Correct spelling of OPENSSL_cleanse.
ok miod@
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/d1_clnt.c4
-rw-r--r--lib/libssl/d1_lib.c4
-rw-r--r--lib/libssl/s3_clnt.c4
-rw-r--r--lib/libssl/s3_lib.c4
-rw-r--r--lib/libssl/s3_srvr.c8
-rw-r--r--lib/libssl/ssl_sess.c8
-rw-r--r--lib/libssl/t1_enc.c6
7 files changed, 19 insertions, 19 deletions
diff --git a/lib/libssl/d1_clnt.c b/lib/libssl/d1_clnt.c
index 23d6b372c91..2b736b92439 100644
--- a/lib/libssl/d1_clnt.c
+++ b/lib/libssl/d1_clnt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: d1_clnt.c,v 1.48 2015/09/02 17:59:15 jsing Exp $ */
+/* $OpenBSD: d1_clnt.c,v 1.49 2015/09/10 15:56:26 jsing Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -731,7 +731,7 @@ dtls1_send_client_key_exchange(SSL *s)
s->method->ssl3_enc->generate_master_secret(s,
s->session->master_key,
tmp_buf, sizeof tmp_buf);
- OPENSSL_cleanse(tmp_buf, sizeof tmp_buf);
+ explicit_bzero(tmp_buf, sizeof tmp_buf);
} else if (alg_k & SSL_kDHE) {
DH *dh_srvr, *dh_clnt;
diff --git a/lib/libssl/d1_lib.c b/lib/libssl/d1_lib.c
index b269efe4690..e7eca4a8cd4 100644
--- a/lib/libssl/d1_lib.c
+++ b/lib/libssl/d1_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: d1_lib.c,v 1.29 2015/07/19 20:32:18 doug Exp $ */
+/* $OpenBSD: d1_lib.c,v 1.30 2015/09/10 15:56:26 jsing Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -203,7 +203,7 @@ dtls1_free(SSL *s)
pqueue_free(s->d1->sent_messages);
pqueue_free(s->d1->buffered_app_data.q);
- OPENSSL_cleanse(s->d1, sizeof *s->d1);
+ explicit_bzero(s->d1, sizeof *s->d1);
free(s->d1);
s->d1 = NULL;
}
diff --git a/lib/libssl/s3_clnt.c b/lib/libssl/s3_clnt.c
index 1d1a0c77f0b..e4ce8163ac8 100644
--- a/lib/libssl/s3_clnt.c
+++ b/lib/libssl/s3_clnt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s3_clnt.c,v 1.125 2015/09/02 17:59:15 jsing Exp $ */
+/* $OpenBSD: s3_clnt.c,v 1.126 2015/09/10 15:56:26 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1933,7 +1933,7 @@ ssl3_send_client_key_exchange(SSL *s)
s->session->master_key_length =
s->method->ssl3_enc->generate_master_secret(
s, s->session->master_key, tmp_buf, sizeof tmp_buf);
- OPENSSL_cleanse(tmp_buf, sizeof tmp_buf);
+ explicit_bzero(tmp_buf, sizeof tmp_buf);
} else if (alg_k & SSL_kDHE) {
DH *dh_srvr, *dh_clnt;
diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c
index 42396a21e9d..4e6b1236983 100644
--- a/lib/libssl/s3_lib.c
+++ b/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s3_lib.c,v 1.100 2015/08/27 06:21:15 doug Exp $ */
+/* $OpenBSD: s3_lib.c,v 1.101 2015/09/10 15:56:26 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -2066,7 +2066,7 @@ ssl3_free(SSL *s)
ssl3_free_digest_list(s);
free(s->s3->alpn_selected);
- OPENSSL_cleanse(s->s3, sizeof *s->s3);
+ explicit_bzero(s->s3, sizeof *s->s3);
free(s->s3);
s->s3 = NULL;
}
diff --git a/lib/libssl/s3_srvr.c b/lib/libssl/s3_srvr.c
index 3f9f6720fac..b2c4f8e0d2b 100644
--- a/lib/libssl/s3_srvr.c
+++ b/lib/libssl/s3_srvr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s3_srvr.c,v 1.115 2015/09/01 13:38:27 jsing Exp $ */
+/* $OpenBSD: s3_srvr.c,v 1.116 2015/09/10 15:56:26 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1725,7 +1725,7 @@ ssl3_get_client_key_exchange(SSL *s)
s->method->ssl3_enc->generate_master_secret(s,
s->session->master_key,
p, i);
- OPENSSL_cleanse(p, i);
+ explicit_bzero(p, i);
} else if (alg_k & SSL_kDHE) {
if (2 > n)
goto truncated;
@@ -1776,7 +1776,7 @@ ssl3_get_client_key_exchange(SSL *s)
s->session->master_key_length =
s->method->ssl3_enc->generate_master_secret(
s, s->session->master_key, p, i);
- OPENSSL_cleanse(p, i);
+ explicit_bzero(p, i);
} else
if (alg_k & (SSL_kECDHE|SSL_kECDHr|SSL_kECDHe)) {
@@ -1920,7 +1920,7 @@ ssl3_get_client_key_exchange(SSL *s)
s->session->master_key_length = s->method->ssl3_enc-> \
generate_master_secret(s, s->session->master_key, p, i);
- OPENSSL_cleanse(p, i);
+ explicit_bzero(p, i);
return (ret);
} else
if (alg_k & SSL_kGOST) {
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c
index a688b9ef410..5d18c8a0b4e 100644
--- a/lib/libssl/ssl_sess.c
+++ b/lib/libssl/ssl_sess.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_sess.c,v 1.46 2015/08/27 06:21:15 doug Exp $ */
+/* $OpenBSD: ssl_sess.c,v 1.47 2015/09/10 15:56:26 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -694,8 +694,8 @@ SSL_SESSION_free(SSL_SESSION *ss)
CRYPTO_free_ex_data(CRYPTO_EX_INDEX_SSL_SESSION, ss, &ss->ex_data);
- OPENSSL_cleanse(ss->master_key, sizeof ss->master_key);
- OPENSSL_cleanse(ss->session_id, sizeof ss->session_id);
+ explicit_bzero(ss->master_key, sizeof ss->master_key);
+ explicit_bzero(ss->session_id, sizeof ss->session_id);
if (ss->sess_cert != NULL)
ssl_sess_cert_free(ss->sess_cert);
if (ss->peer != NULL)
@@ -708,7 +708,7 @@ SSL_SESSION_free(SSL_SESSION *ss)
free(ss->tlsext_ecpointformatlist);
ss->tlsext_ellipticcurvelist_length = 0;
free(ss->tlsext_ellipticcurvelist);
- OPENSSL_cleanse(ss, sizeof(*ss));
+ explicit_bzero(ss, sizeof(*ss));
free(ss);
}
diff --git a/lib/libssl/t1_enc.c b/lib/libssl/t1_enc.c
index a3a5d4dd7d8..5d2b8eaf896 100644
--- a/lib/libssl/t1_enc.c
+++ b/lib/libssl/t1_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: t1_enc.c,v 1.80 2015/08/27 14:16:57 jsing Exp $ */
+/* $OpenBSD: t1_enc.c,v 1.81 2015/09/10 15:56:26 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -226,7 +226,7 @@ err:
EVP_PKEY_free(mac_key);
EVP_MD_CTX_cleanup(&ctx);
EVP_MD_CTX_cleanup(&ctx_tmp);
- OPENSSL_cleanse(A1, sizeof(A1));
+ explicit_bzero(A1, sizeof(A1));
return ret;
}
@@ -659,7 +659,7 @@ tls1_setup_key_block(SSL *s)
err:
if (tmp_block) {
- OPENSSL_cleanse(tmp_block, key_block_len);
+ explicit_bzero(tmp_block, key_block_len);
free(tmp_block);
}
return (ret);