summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/src/crypto/aes/aes_wrap.c4
-rw-r--r--lib/libssl/src/crypto/asn1/a_bitstr.c4
-rw-r--r--lib/libssl/src/crypto/asn1/a_bytes.c4
-rw-r--r--lib/libssl/src/crypto/asn1/a_gentm.c4
-rw-r--r--lib/libssl/src/crypto/asn1/a_int.c6
-rw-r--r--lib/libssl/src/crypto/asn1/a_mbstr.c6
-rw-r--r--lib/libssl/src/crypto/asn1/a_object.c6
-rw-r--r--lib/libssl/src/crypto/asn1/a_set.c4
-rw-r--r--lib/libssl/src/crypto/asn1/a_strnid.c6
-rw-r--r--lib/libssl/src/crypto/asn1/a_time.c4
-rw-r--r--lib/libssl/src/crypto/asn1/a_utctm.c4
-rw-r--r--lib/libssl/src/crypto/asn1/ameth_lib.c4
-rw-r--r--lib/libssl/src/crypto/asn1/asn1_gen.c4
-rw-r--r--lib/libssl/src/crypto/asn1/asn1_lib.c6
-rw-r--r--lib/libssl/src/crypto/asn1/asn_mime.c6
-rw-r--r--lib/libssl/src/crypto/asn1/asn_moid.c6
-rw-r--r--lib/libssl/src/crypto/asn1/bio_asn1.c4
-rw-r--r--lib/libssl/src/crypto/asn1/evp_asn1.c4
-rw-r--r--lib/libssl/src/crypto/asn1/n_pkey.c4
-rw-r--r--lib/libssl/src/crypto/asn1/p5_pbe.c4
-rw-r--r--lib/libssl/src/crypto/asn1/p5_pbev2.c4
-rw-r--r--lib/libssl/src/crypto/asn1/t_bitst.c4
-rw-r--r--lib/libssl/src/crypto/asn1/x_long.c4
-rw-r--r--lib/libssl/src/crypto/asn1/x_name.c6
-rw-r--r--lib/libssl/src/crypto/asn1/x_pkey.c4
-rw-r--r--lib/libssl/src/crypto/bio/b_dump.c3
-rw-r--r--lib/libssl/src/crypto/bio/b_sock.c3
-rw-r--r--lib/libssl/src/crypto/bio/bf_buff.c6
-rw-r--r--lib/libssl/src/crypto/bio/bss_acpt.c10
-rw-r--r--lib/libssl/src/crypto/bio/bss_conn.c15
-rw-r--r--lib/libssl/src/crypto/bio/bss_dgram.c13
-rw-r--r--lib/libssl/src/crypto/bio/bss_fd.c6
-rw-r--r--lib/libssl/src/crypto/bio/bss_file.c7
-rw-r--r--lib/libssl/src/crypto/bio/bss_log.c11
-rw-r--r--lib/libssl/src/crypto/bio/bss_mem.c6
-rw-r--r--lib/libssl/src/crypto/bio/bss_null.c6
-rw-r--r--lib/libssl/src/crypto/bio/bss_sock.c10
-rw-r--r--lib/libssl/src/crypto/bn/bn_ctx.c5
-rw-r--r--lib/libssl/src/crypto/bn/bn_exp.c6
-rw-r--r--lib/libssl/src/crypto/bn/bn_lib.c4
-rw-r--r--lib/libssl/src/crypto/bn/bn_mont.c4
-rw-r--r--lib/libssl/src/crypto/bn/bn_mul.c6
-rw-r--r--lib/libssl/src/crypto/bn/bn_nist.c5
-rw-r--r--lib/libssl/src/crypto/bn/bn_shift.c4
-rw-r--r--lib/libssl/src/crypto/bn/bn_sqr.c4
-rw-r--r--lib/libssl/src/crypto/buffer/buffer.c4
-rw-r--r--lib/libssl/src/crypto/cmac/cm_pmeth.c4
-rw-r--r--lib/libssl/src/crypto/conf/conf_mod.c7
-rw-r--r--lib/libssl/src/crypto/cryptlib.c5
-rw-r--r--lib/libssl/src/crypto/cryptlib.h7
-rw-r--r--lib/libssl/src/crypto/dh/dh_pmeth.c6
-rw-r--r--lib/libssl/src/crypto/dsa/dsa_gen.c4
-rw-r--r--lib/libssl/src/crypto/dsa/dsa_pmeth.c6
-rw-r--r--lib/libssl/src/crypto/dso/dso_dlfcn.c4
-rw-r--r--lib/libssl/src/crypto/dso/dso_lib.c4
-rw-r--r--lib/libssl/src/crypto/ec/ec_pmeth.c4
-rw-r--r--lib/libssl/src/crypto/ec/eck_prn.c4
-rw-r--r--lib/libssl/src/crypto/engine/eng_cnf.c4
-rw-r--r--lib/libssl/src/crypto/engine/eng_ctrl.c4
-rw-r--r--lib/libssl/src/crypto/engine/eng_dyn.c3
-rw-r--r--lib/libssl/src/crypto/engine/eng_fat.c4
-rw-r--r--lib/libssl/src/crypto/engine/eng_lib.c4
-rw-r--r--lib/libssl/src/crypto/engine/eng_list.c5
-rw-r--r--lib/libssl/src/crypto/engine/eng_openssl.c5
-rw-r--r--lib/libssl/src/crypto/engine/tb_asnmth.c4
-rw-r--r--lib/libssl/src/crypto/err/err_prn.c4
-rw-r--r--lib/libssl/src/crypto/evp/bio_b64.c6
-rw-r--r--lib/libssl/src/crypto/evp/bio_enc.c6
-rw-r--r--lib/libssl/src/crypto/evp/digest.c4
-rw-r--r--lib/libssl/src/crypto/evp/e_des3.c5
-rw-r--r--lib/libssl/src/crypto/evp/e_null.c4
-rw-r--r--lib/libssl/src/crypto/evp/e_xcbc_d.c4
-rw-r--r--lib/libssl/src/crypto/evp/encode.c4
-rw-r--r--lib/libssl/src/crypto/evp/evp_enc.c4
-rw-r--r--lib/libssl/src/crypto/evp/evp_key.c4
-rw-r--r--lib/libssl/src/crypto/evp/evp_lib.c4
-rw-r--r--lib/libssl/src/crypto/evp/evp_pbe.c4
-rw-r--r--lib/libssl/src/crypto/evp/p5_crpt.c4
-rw-r--r--lib/libssl/src/crypto/evp/p5_crpt2.c5
-rw-r--r--lib/libssl/src/crypto/evp/pmeth_lib.c4
-rw-r--r--lib/libssl/src/crypto/hmac/hm_ameth.c4
-rw-r--r--lib/libssl/src/crypto/hmac/hm_pmeth.c4
-rw-r--r--lib/libssl/src/crypto/objects/obj_dat.c6
-rw-r--r--lib/libssl/src/crypto/objects/obj_lib.c4
-rw-r--r--lib/libssl/src/crypto/ocsp/ocsp_ext.c6
-rw-r--r--lib/libssl/src/crypto/ocsp/ocsp_lib.c6
-rw-r--r--lib/libssl/src/crypto/pem/pem_info.c4
-rw-r--r--lib/libssl/src/crypto/pem/pem_lib.c6
-rw-r--r--lib/libssl/src/crypto/pem/pem_pkey.c4
-rw-r--r--lib/libssl/src/crypto/pem/pem_seal.c6
-rw-r--r--lib/libssl/src/crypto/pem/pvkfmt.c4
-rw-r--r--lib/libssl/src/crypto/pkcs12/p12_key.c4
-rw-r--r--lib/libssl/src/crypto/pkcs12/p12_mutl.c6
-rw-r--r--lib/libssl/src/crypto/pkcs12/p12_utl.c4
-rw-r--r--lib/libssl/src/crypto/pkcs7/pk7_doit.c4
-rw-r--r--lib/libssl/src/crypto/rsa/rsa_none.c4
-rw-r--r--lib/libssl/src/crypto/rsa/rsa_oaep.c5
-rw-r--r--lib/libssl/src/crypto/rsa/rsa_pk1.c4
-rw-r--r--lib/libssl/src/crypto/rsa/rsa_pmeth.c6
-rw-r--r--lib/libssl/src/crypto/rsa/rsa_pss.c4
-rw-r--r--lib/libssl/src/crypto/rsa/rsa_saos.c4
-rw-r--r--lib/libssl/src/crypto/rsa/rsa_sign.c4
-rw-r--r--lib/libssl/src/crypto/rsa/rsa_ssl.c4
-rw-r--r--lib/libssl/src/crypto/rsa/rsa_x931.c4
-rw-r--r--lib/libssl/src/crypto/stack/stack.c5
-rw-r--r--lib/libssl/src/crypto/ts/ts_lib.c4
-rw-r--r--lib/libssl/src/crypto/ts/ts_rsp_sign.c8
-rw-r--r--lib/libssl/src/crypto/ts/ts_rsp_verify.c4
-rw-r--r--lib/libssl/src/crypto/ts/ts_verify_ctx.c4
-rw-r--r--lib/libssl/src/crypto/x509/by_dir.c6
-rw-r--r--lib/libssl/src/crypto/x509/by_file.c5
-rw-r--r--lib/libssl/src/crypto/x509/x509_cmp.c6
-rw-r--r--lib/libssl/src/crypto/x509/x509_obj.c4
-rw-r--r--lib/libssl/src/crypto/x509/x509_vfy.c6
-rw-r--r--lib/libssl/src/crypto/x509/x509_vpm.c3
-rw-r--r--lib/libssl/src/crypto/x509/x509name.c4
-rw-r--r--lib/libssl/src/crypto/x509/x509spki.c4
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_akey.c4
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_alt.c4
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_bcons.c5
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_bitst.c4
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_conf.c7
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_cpols.c4
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_crld.c4
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_ia5.c5
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_info.c4
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_ncons.c5
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_ocsp.c6
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_pci.c4
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_pcons.c5
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_purp.c4
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_skey.c5
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_sxnet.c4
-rw-r--r--lib/libssl/src/crypto/x509v3/v3_utl.c7
134 files changed, 453 insertions, 210 deletions
diff --git a/lib/libssl/src/crypto/aes/aes_wrap.c b/lib/libssl/src/crypto/aes/aes_wrap.c
index c3c6e1a67dc..6578bbb6fdc 100644
--- a/lib/libssl/src/crypto/aes/aes_wrap.c
+++ b/lib/libssl/src/crypto/aes/aes_wrap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aes_wrap.c,v 1.7 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: aes_wrap.c,v 1.8 2014/07/10 13:58:21 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
@@ -51,6 +51,8 @@
* ====================================================================
*/
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/aes.h>
#include <openssl/bio.h>
diff --git a/lib/libssl/src/crypto/asn1/a_bitstr.c b/lib/libssl/src/crypto/asn1/a_bitstr.c
index 16228eb40bb..a90eadef289 100644
--- a/lib/libssl/src/crypto/asn1/a_bitstr.c
+++ b/lib/libssl/src/crypto/asn1/a_bitstr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_bitstr.c,v 1.18 2014/07/10 11:25:13 tedu Exp $ */
+/* $OpenBSD: a_bitstr.c,v 1.19 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/asn1/a_bytes.c b/lib/libssl/src/crypto/asn1/a_bytes.c
index abe6030750a..c8d1a5a1e9d 100644
--- a/lib/libssl/src/crypto/asn1/a_bytes.c
+++ b/lib/libssl/src/crypto/asn1/a_bytes.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_bytes.c,v 1.16 2014/07/10 11:25:13 tedu Exp $ */
+/* $OpenBSD: a_bytes.c,v 1.17 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/asn1/a_gentm.c b/lib/libssl/src/crypto/asn1/a_gentm.c
index bdda8ab12d8..95612ae3248 100644
--- a/lib/libssl/src/crypto/asn1/a_gentm.c
+++ b/lib/libssl/src/crypto/asn1/a_gentm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_gentm.c,v 1.20 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: a_gentm.c,v 1.21 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -59,7 +59,9 @@
/* GENERALIZEDTIME implementation, written by Steve Henson. Based on UTCTIME */
#include <stdio.h>
+#include <string.h>
#include <time.h>
+
#include "cryptlib.h"
#include "o_time.h"
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/asn1/a_int.c b/lib/libssl/src/crypto/asn1/a_int.c
index 015d02ccdbe..1a84772231a 100644
--- a/lib/libssl/src/crypto/asn1/a_int.c
+++ b/lib/libssl/src/crypto/asn1/a_int.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_int.c,v 1.22 2014/07/10 11:25:13 tedu Exp $ */
+/* $OpenBSD: a_int.c,v 1.23 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/bn.h>
@@ -200,7 +202,7 @@ c2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **pp, long len)
} else
ret = (*a);
- p= *pp;
+ p = *pp;
pend = p + len;
/* We must malloc stuff, even for 0 bytes otherwise it
diff --git a/lib/libssl/src/crypto/asn1/a_mbstr.c b/lib/libssl/src/crypto/asn1/a_mbstr.c
index 8cf10a34403..2413c0eaee9 100644
--- a/lib/libssl/src/crypto/asn1/a_mbstr.c
+++ b/lib/libssl/src/crypto/asn1/a_mbstr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_mbstr.c,v 1.17 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: a_mbstr.c,v 1.18 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -56,8 +56,10 @@
*
*/
-#include <stdio.h>
#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1.h>
#include "asn1_locl.h"
diff --git a/lib/libssl/src/crypto/asn1/a_object.c b/lib/libssl/src/crypto/asn1/a_object.c
index d5245093746..85b5d623b22 100644
--- a/lib/libssl/src/crypto/asn1/a_object.c
+++ b/lib/libssl/src/crypto/asn1/a_object.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_object.c,v 1.19 2014/07/10 11:25:13 tedu Exp $ */
+/* $OpenBSD: a_object.c,v 1.20 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,8 +56,10 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
#include <limits.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/asn1/a_set.c b/lib/libssl/src/crypto/asn1/a_set.c
index 81dfe88fca1..8fe810d2ce6 100644
--- a/lib/libssl/src/crypto/asn1/a_set.c
+++ b/lib/libssl/src/crypto/asn1/a_set.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_set.c,v 1.14 2014/06/24 19:34:06 miod Exp $ */
+/* $OpenBSD: a_set.c,v 1.15 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1_mac.h>
diff --git a/lib/libssl/src/crypto/asn1/a_strnid.c b/lib/libssl/src/crypto/asn1/a_strnid.c
index fb985db27ff..f877adef1f3 100644
--- a/lib/libssl/src/crypto/asn1/a_strnid.c
+++ b/lib/libssl/src/crypto/asn1/a_strnid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_strnid.c,v 1.15 2014/06/22 13:17:08 deraadt Exp $ */
+/* $OpenBSD: a_strnid.c,v 1.16 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -56,8 +56,10 @@
*
*/
-#include <stdio.h>
#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/asn1/a_time.c b/lib/libssl/src/crypto/asn1/a_time.c
index d65cf6e96d1..7e3a578037c 100644
--- a/lib/libssl/src/crypto/asn1/a_time.c
+++ b/lib/libssl/src/crypto/asn1/a_time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_time.c,v 1.19 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: a_time.c,v 1.20 2014/07/10 13:58:22 jsing Exp $ */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
@@ -62,7 +62,9 @@
*/
#include <stdio.h>
+#include <string.h>
#include <time.h>
+
#include "cryptlib.h"
#include "o_time.h"
#include <openssl/asn1t.h>
diff --git a/lib/libssl/src/crypto/asn1/a_utctm.c b/lib/libssl/src/crypto/asn1/a_utctm.c
index 13383e40380..4e840f742f0 100644
--- a/lib/libssl/src/crypto/asn1/a_utctm.c
+++ b/lib/libssl/src/crypto/asn1/a_utctm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_utctm.c,v 1.25 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: a_utctm.c,v 1.26 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,7 +57,9 @@
*/
#include <stdio.h>
+#include <string.h>
#include <time.h>
+
#include "cryptlib.h"
#include "o_time.h"
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/asn1/ameth_lib.c b/lib/libssl/src/crypto/asn1/ameth_lib.c
index 72ed0c4ec35..0c5edd5c62f 100644
--- a/lib/libssl/src/crypto/asn1/ameth_lib.c
+++ b/lib/libssl/src/crypto/asn1/ameth_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ameth_lib.c,v 1.9 2014/06/22 13:17:08 deraadt Exp $ */
+/* $OpenBSD: ameth_lib.c,v 1.10 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/asn1/asn1_gen.c b/lib/libssl/src/crypto/asn1/asn1_gen.c
index 37a06520ad0..f05d92d929a 100644
--- a/lib/libssl/src/crypto/asn1/asn1_gen.c
+++ b/lib/libssl/src/crypto/asn1/asn1_gen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asn1_gen.c,v 1.10 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: asn1_gen.c,v 1.11 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2002.
*/
@@ -56,6 +56,8 @@
*
*/
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/x509v3.h>
diff --git a/lib/libssl/src/crypto/asn1/asn1_lib.c b/lib/libssl/src/crypto/asn1/asn1_lib.c
index 31e523fc75b..98f746c0134 100644
--- a/lib/libssl/src/crypto/asn1/asn1_lib.c
+++ b/lib/libssl/src/crypto/asn1/asn1_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asn1_lib.c,v 1.28 2014/07/09 11:10:50 bcook Exp $ */
+/* $OpenBSD: asn1_lib.c,v 1.29 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,8 +56,10 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
#include <limits.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/asn1_mac.h>
diff --git a/lib/libssl/src/crypto/asn1/asn_mime.c b/lib/libssl/src/crypto/asn1/asn_mime.c
index 0ce05d60b6b..dc39dd1f08a 100644
--- a/lib/libssl/src/crypto/asn1/asn_mime.c
+++ b/lib/libssl/src/crypto/asn1/asn_mime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asn_mime.c,v 1.18 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: asn_mime.c,v 1.19 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
@@ -52,8 +52,10 @@
*
*/
-#include <stdio.h>
#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/rand.h>
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/asn1/asn_moid.c b/lib/libssl/src/crypto/asn1/asn_moid.c
index 77379a6de8c..44b9dbb2108 100644
--- a/lib/libssl/src/crypto/asn1/asn_moid.c
+++ b/lib/libssl/src/crypto/asn1/asn_moid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asn_moid.c,v 1.10 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: asn_moid.c,v 1.11 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL
* project 2001.
*/
@@ -56,8 +56,10 @@
*
*/
-#include <stdio.h>
#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+
#include <openssl/crypto.h>
#include "cryptlib.h"
#include <openssl/conf.h>
diff --git a/lib/libssl/src/crypto/asn1/bio_asn1.c b/lib/libssl/src/crypto/asn1/bio_asn1.c
index 14d38d5616c..6670ef5c173 100644
--- a/lib/libssl/src/crypto/asn1/bio_asn1.c
+++ b/lib/libssl/src/crypto/asn1/bio_asn1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bio_asn1.c,v 1.9 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: bio_asn1.c,v 1.10 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
@@ -61,7 +61,9 @@
* can be provided to add prefix and suffix data.
*/
+#include <stdlib.h>
#include <string.h>
+
#include <openssl/bio.h>
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/asn1/evp_asn1.c b/lib/libssl/src/crypto/asn1/evp_asn1.c
index 719f2cf119f..cc4b204019f 100644
--- a/lib/libssl/src/crypto/asn1/evp_asn1.c
+++ b/lib/libssl/src/crypto/asn1/evp_asn1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: evp_asn1.c,v 1.9 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: evp_asn1.c,v 1.10 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/asn1_mac.h>
diff --git a/lib/libssl/src/crypto/asn1/n_pkey.c b/lib/libssl/src/crypto/asn1/n_pkey.c
index 259047fe3d2..c9a507ca41b 100644
--- a/lib/libssl/src/crypto/asn1/n_pkey.c
+++ b/lib/libssl/src/crypto/asn1/n_pkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: n_pkey.c,v 1.18 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: n_pkey.c,v 1.19 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#ifndef OPENSSL_NO_RSA
#include <openssl/rsa.h>
diff --git a/lib/libssl/src/crypto/asn1/p5_pbe.c b/lib/libssl/src/crypto/asn1/p5_pbe.c
index 19a88c20f1a..7f1fce34a2f 100644
--- a/lib/libssl/src/crypto/asn1/p5_pbe.c
+++ b/lib/libssl/src/crypto/asn1/p5_pbe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p5_pbe.c,v 1.14 2014/07/09 22:55:17 tedu Exp $ */
+/* $OpenBSD: p5_pbe.c,v 1.15 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/asn1/p5_pbev2.c b/lib/libssl/src/crypto/asn1/p5_pbev2.c
index 3c06b70f023..411740f403b 100644
--- a/lib/libssl/src/crypto/asn1/p5_pbev2.c
+++ b/lib/libssl/src/crypto/asn1/p5_pbev2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p5_pbev2.c,v 1.15 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: p5_pbev2.c,v 1.16 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999-2004.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/asn1/t_bitst.c b/lib/libssl/src/crypto/asn1/t_bitst.c
index 56acd6f8b81..f9a1900c604 100644
--- a/lib/libssl/src/crypto/asn1/t_bitst.c
+++ b/lib/libssl/src/crypto/asn1/t_bitst.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: t_bitst.c,v 1.5 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: t_bitst.c,v 1.6 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/x509v3.h>
diff --git a/lib/libssl/src/crypto/asn1/x_long.c b/lib/libssl/src/crypto/asn1/x_long.c
index 765bed2521b..dddcfeb479f 100644
--- a/lib/libssl/src/crypto/asn1/x_long.c
+++ b/lib/libssl/src/crypto/asn1/x_long.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x_long.c,v 1.7 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: x_long.c,v 1.8 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2000.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/bn.h>
diff --git a/lib/libssl/src/crypto/asn1/x_name.c b/lib/libssl/src/crypto/asn1/x_name.c
index 54b54ee9799..4b84cfeffd5 100644
--- a/lib/libssl/src/crypto/asn1/x_name.c
+++ b/lib/libssl/src/crypto/asn1/x_name.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x_name.c,v 1.17 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: x_name.c,v 1.18 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,8 +56,10 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/asn1/x_pkey.c b/lib/libssl/src/crypto/asn1/x_pkey.c
index bbf7666b541..8488ff37fb7 100644
--- a/lib/libssl/src/crypto/asn1/x_pkey.c
+++ b/lib/libssl/src/crypto/asn1/x_pkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x_pkey.c,v 1.12 2014/06/27 04:41:09 miod Exp $ */
+/* $OpenBSD: x_pkey.c,v 1.13 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/bio/b_dump.c b/lib/libssl/src/crypto/bio/b_dump.c
index c3799448045..62a6c269ac4 100644
--- a/lib/libssl/src/crypto/bio/b_dump.c
+++ b/lib/libssl/src/crypto/bio/b_dump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: b_dump.c,v 1.17 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: b_dump.c,v 1.18 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -61,6 +61,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include <openssl/bio.h>
diff --git a/lib/libssl/src/crypto/bio/b_sock.c b/lib/libssl/src/crypto/bio/b_sock.c
index be8b5552178..32ac3b06649 100644
--- a/lib/libssl/src/crypto/bio/b_sock.c
+++ b/lib/libssl/src/crypto/bio/b_sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: b_sock.c,v 1.51 2014/07/10 09:33:45 bcook Exp $ */
+/* $OpenBSD: b_sock.c,v 1.52 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -58,6 +58,7 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
+#include <string.h>
#include <arpa/inet.h>
#include <netinet/in.h>
diff --git a/lib/libssl/src/crypto/bio/bf_buff.c b/lib/libssl/src/crypto/bio/bf_buff.c
index 4aa5d39293f..ea55e490be8 100644
--- a/lib/libssl/src/crypto/bio/bf_buff.c
+++ b/lib/libssl/src/crypto/bio/bf_buff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bf_buff.c,v 1.19 2014/07/10 11:25:13 tedu Exp $ */
+/* $OpenBSD: bf_buff.c,v 1.20 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,8 +56,10 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/bio.h>
diff --git a/lib/libssl/src/crypto/bio/bss_acpt.c b/lib/libssl/src/crypto/bio/bss_acpt.c
index 2011aefc541..580c52da6cc 100644
--- a/lib/libssl/src/crypto/bio/bss_acpt.c
+++ b/lib/libssl/src/crypto/bio/bss_acpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_acpt.c,v 1.21 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bss_acpt.c,v 1.22 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,13 +56,15 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
+#include <sys/socket.h>
+
#include <errno.h>
+#include <stdio.h>
+#include <string.h>
#include <unistd.h>
+
#include "cryptlib.h"
#include <openssl/bio.h>
-#include <sys/socket.h>
-
#define SOCKET_PROTOCOL IPPROTO_TCP
diff --git a/lib/libssl/src/crypto/bio/bss_conn.c b/lib/libssl/src/crypto/bio/bss_conn.c
index 0d29e428c97..d5763a0ce39 100644
--- a/lib/libssl/src/crypto/bio/bss_conn.c
+++ b/lib/libssl/src/crypto/bio/bss_conn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_conn.c,v 1.27 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bss_conn.c,v 1.28 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,15 +56,18 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
+#include <sys/socket.h>
+
+#include <netinet/in.h>
+
#include <errno.h>
+#include <netdb.h>
+#include <stdio.h>
+#include <string.h>
#include <unistd.h>
+
#include "cryptlib.h"
#include <openssl/bio.h>
-#include <netdb.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-
#define SOCKET_PROTOCOL IPPROTO_TCP
diff --git a/lib/libssl/src/crypto/bio/bss_dgram.c b/lib/libssl/src/crypto/bio/bss_dgram.c
index 0e0698d2ab0..d06406aebd6 100644
--- a/lib/libssl/src/crypto/bio/bss_dgram.c
+++ b/lib/libssl/src/crypto/bio/bss_dgram.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_dgram.c,v 1.28 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bss_dgram.c,v 1.29 2014/07/10 13:58:22 jsing Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -57,15 +57,18 @@
*
*/
+#include <sys/socket.h>
+
+#include <netinet/in.h>
-#include <stdio.h>
#include <errno.h>
+#include <netdb.h>
+#include <stdio.h>
+#include <string.h>
#include <unistd.h>
+
#include "cryptlib.h"
#include <openssl/bio.h>
-#include <netdb.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
#ifndef OPENSSL_NO_DGRAM
diff --git a/lib/libssl/src/crypto/bio/bss_fd.c b/lib/libssl/src/crypto/bio/bss_fd.c
index ea4f59e1bda..60efde91c9d 100644
--- a/lib/libssl/src/crypto/bio/bss_fd.c
+++ b/lib/libssl/src/crypto/bio/bss_fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_fd.c,v 1.14 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bss_fd.c,v 1.15 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,9 +56,11 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
#include <errno.h>
+#include <stdio.h>
+#include <string.h>
#include <unistd.h>
+
#include "cryptlib.h"
#if defined(OPENSSL_NO_POSIX_IO)
diff --git a/lib/libssl/src/crypto/bio/bss_file.c b/lib/libssl/src/crypto/bio/bss_file.c
index 70a85220e41..44345f3c70c 100644
--- a/lib/libssl/src/crypto/bio/bss_file.c
+++ b/lib/libssl/src/crypto/bio/bss_file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_file.c,v 1.28 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bss_file.c,v 1.29 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -83,13 +83,14 @@
#endif
#endif
-#include <stdio.h>
#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/bio.h>
#include <openssl/err.h>
-
static int file_write(BIO *h, const char *buf, int num);
static int file_read(BIO *h, char *buf, int size);
static int file_puts(BIO *h, const char *str);
diff --git a/lib/libssl/src/crypto/bio/bss_log.c b/lib/libssl/src/crypto/bio/bss_log.c
index 0124f1403b4..63361ce22fe 100644
--- a/lib/libssl/src/crypto/bio/bss_log.c
+++ b/lib/libssl/src/crypto/bio/bss_log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_log.c,v 1.19 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bss_log.c,v 1.20 2014/07/10 13:58:22 jsing Exp $ */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
@@ -62,20 +62,18 @@
*/
-
-#include <stdio.h>
#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+#include <syslog.h>
#include "cryptlib.h"
-#include <syslog.h>
-
#include <openssl/buffer.h>
#include <openssl/err.h>
#ifndef NO_SYSLOG
-
static int slg_write(BIO *h, const char *buf, int num);
static int slg_puts(BIO *h, const char *str);
static long slg_ctrl(BIO *h, int cmd, long arg1, void *arg2);
@@ -214,5 +212,4 @@ xcloselog(BIO* bp)
closelog();
}
-
#endif /* NO_SYSLOG */
diff --git a/lib/libssl/src/crypto/bio/bss_mem.c b/lib/libssl/src/crypto/bio/bss_mem.c
index 9b40a6d4dcb..849a2d05ce1 100644
--- a/lib/libssl/src/crypto/bio/bss_mem.c
+++ b/lib/libssl/src/crypto/bio/bss_mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_mem.c,v 1.11 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bss_mem.c,v 1.12 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,8 +56,10 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/bio.h>
diff --git a/lib/libssl/src/crypto/bio/bss_null.c b/lib/libssl/src/crypto/bio/bss_null.c
index 36a47a2145b..226076e13ad 100644
--- a/lib/libssl/src/crypto/bio/bss_null.c
+++ b/lib/libssl/src/crypto/bio/bss_null.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_null.c,v 1.8 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bss_null.c,v 1.9 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,8 +56,10 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/bio.h>
diff --git a/lib/libssl/src/crypto/bio/bss_sock.c b/lib/libssl/src/crypto/bio/bss_sock.c
index 238f5dc2de1..ced988f97a6 100644
--- a/lib/libssl/src/crypto/bio/bss_sock.c
+++ b/lib/libssl/src/crypto/bio/bss_sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_sock.c,v 1.21 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bss_sock.c,v 1.22 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,12 +56,14 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
+#include <sys/socket.h>
+
#include <errno.h>
+#include <stdio.h>
+#include <string.h>
#include <unistd.h>
-#include "cryptlib.h"
-#include <sys/socket.h>
+#include "cryptlib.h"
#include <openssl/bio.h>
diff --git a/lib/libssl/src/crypto/bn/bn_ctx.c b/lib/libssl/src/crypto/bn/bn_ctx.c
index e3ea72516b5..95871258d92 100644
--- a/lib/libssl/src/crypto/bn/bn_ctx.c
+++ b/lib/libssl/src/crypto/bn/bn_ctx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_ctx.c,v 1.10 2014/06/27 06:07:35 deraadt Exp $ */
+/* $OpenBSD: bn_ctx.c,v 1.11 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Ulf Moeller for the OpenSSL project. */
/* ====================================================================
* Copyright (c) 1998-2004 The OpenSSL Project. All rights reserved.
@@ -60,8 +60,9 @@
#endif
#endif
-#include <stdio.h>
#include <assert.h>
+#include <stdio.h>
+#include <string.h>
#include "cryptlib.h"
#include "bn_lcl.h"
diff --git a/lib/libssl/src/crypto/bn/bn_exp.c b/lib/libssl/src/crypto/bn/bn_exp.c
index b041cad152b..d88f8b2a82f 100644
--- a/lib/libssl/src/crypto/bn/bn_exp.c
+++ b/lib/libssl/src/crypto/bn/bn_exp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_exp.c,v 1.16 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bn_exp.c,v 1.17 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -109,12 +109,12 @@
*
*/
+#include <stdlib.h>
+#include <string.h>
#include "cryptlib.h"
#include "bn_lcl.h"
-#include <stdlib.h>
-
/* maximum precomputation table size for *variable* sliding windows */
#define TABLE_SIZE 32
diff --git a/lib/libssl/src/crypto/bn/bn_lib.c b/lib/libssl/src/crypto/bn/bn_lib.c
index 49a967e9e0c..a33cf99ddb4 100644
--- a/lib/libssl/src/crypto/bn/bn_lib.c
+++ b/lib/libssl/src/crypto/bn/bn_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_lib.c,v 1.29 2014/07/09 11:10:50 bcook Exp $ */
+/* $OpenBSD: bn_lib.c,v 1.30 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -64,6 +64,8 @@
#include <assert.h>
#include <limits.h>
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include "bn_lcl.h"
diff --git a/lib/libssl/src/crypto/bn/bn_mont.c b/lib/libssl/src/crypto/bn/bn_mont.c
index 86249dd5379..32d9e3836a7 100644
--- a/lib/libssl/src/crypto/bn/bn_mont.c
+++ b/lib/libssl/src/crypto/bn/bn_mont.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_mont.c,v 1.21 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bn_mont.c,v 1.22 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -117,6 +117,8 @@
*/
#include <stdio.h>
+#include <stdint.h>
+
#include "cryptlib.h"
#include "bn_lcl.h"
diff --git a/lib/libssl/src/crypto/bn/bn_mul.c b/lib/libssl/src/crypto/bn/bn_mul.c
index 8f8fb249ef5..721fac19b11 100644
--- a/lib/libssl/src/crypto/bn/bn_mul.c
+++ b/lib/libssl/src/crypto/bn/bn_mul.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_mul.c,v 1.16 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bn_mul.c,v 1.17 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -61,8 +61,10 @@
# define NDEBUG
#endif
-#include <stdio.h>
#include <assert.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include "bn_lcl.h"
diff --git a/lib/libssl/src/crypto/bn/bn_nist.c b/lib/libssl/src/crypto/bn/bn_nist.c
index 4ddb3c2a86d..dd47ffb8be1 100644
--- a/lib/libssl/src/crypto/bn/bn_nist.c
+++ b/lib/libssl/src/crypto/bn/bn_nist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_nist.c,v 1.12 2014/07/09 16:06:13 miod Exp $ */
+/* $OpenBSD: bn_nist.c,v 1.13 2014/07/10 13:58:22 jsing Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project
*/
@@ -56,12 +56,13 @@
*
*/
+#include <stdint.h>
+
#include "bn_lcl.h"
#include "cryptlib.h"
#include <machine/endian.h>
-
#define BN_NIST_192_TOP (192+BN_BITS2-1)/BN_BITS2
#define BN_NIST_224_TOP (224+BN_BITS2-1)/BN_BITS2
#define BN_NIST_256_TOP (256+BN_BITS2-1)/BN_BITS2
diff --git a/lib/libssl/src/crypto/bn/bn_shift.c b/lib/libssl/src/crypto/bn/bn_shift.c
index eb36dc4ad55..70bb92cd81a 100644
--- a/lib/libssl/src/crypto/bn/bn_shift.c
+++ b/lib/libssl/src/crypto/bn/bn_shift.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_shift.c,v 1.10 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bn_shift.c,v 1.11 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include "bn_lcl.h"
diff --git a/lib/libssl/src/crypto/bn/bn_sqr.c b/lib/libssl/src/crypto/bn/bn_sqr.c
index 0b9cf070632..7c540820852 100644
--- a/lib/libssl/src/crypto/bn/bn_sqr.c
+++ b/lib/libssl/src/crypto/bn/bn_sqr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_sqr.c,v 1.8 2014/06/12 15:49:28 deraadt Exp $ */
+/* $OpenBSD: bn_sqr.c,v 1.9 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include "bn_lcl.h"
diff --git a/lib/libssl/src/crypto/buffer/buffer.c b/lib/libssl/src/crypto/buffer/buffer.c
index 3373e324ae2..af32cbf50b0 100644
--- a/lib/libssl/src/crypto/buffer/buffer.c
+++ b/lib/libssl/src/crypto/buffer/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.19 2014/07/09 16:51:09 miod Exp $ */
+/* $OpenBSD: buffer.c,v 1.20 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/buffer.h>
diff --git a/lib/libssl/src/crypto/cmac/cm_pmeth.c b/lib/libssl/src/crypto/cmac/cm_pmeth.c
index 5bb391d0533..6aba656f182 100644
--- a/lib/libssl/src/crypto/cmac/cm_pmeth.c
+++ b/lib/libssl/src/crypto/cmac/cm_pmeth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cm_pmeth.c,v 1.6 2014/06/21 13:42:14 jsing Exp $ */
+/* $OpenBSD: cm_pmeth.c,v 1.7 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2010.
*/
@@ -52,6 +52,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/x509.h>
#include <openssl/x509v3.h>
diff --git a/lib/libssl/src/crypto/conf/conf_mod.c b/lib/libssl/src/crypto/conf/conf_mod.c
index e58582a5ec8..def64361ff5 100644
--- a/lib/libssl/src/crypto/conf/conf_mod.c
+++ b/lib/libssl/src/crypto/conf/conf_mod.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf_mod.c,v 1.21 2014/06/23 22:19:02 deraadt Exp $ */
+/* $OpenBSD: conf_mod.c,v 1.22 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL
* project 2001.
*/
@@ -56,8 +56,11 @@
*
*/
-#include <stdio.h>
#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+
#include <openssl/crypto.h>
#include "cryptlib.h"
#include <openssl/conf.h>
diff --git a/lib/libssl/src/crypto/cryptlib.c b/lib/libssl/src/crypto/cryptlib.c
index bae59e28260..221a50b70ae 100644
--- a/lib/libssl/src/crypto/cryptlib.c
+++ b/lib/libssl/src/crypto/cryptlib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptlib.c,v 1.27 2014/06/20 21:00:46 deraadt Exp $ */
+/* $OpenBSD: cryptlib.c,v 1.28 2014/07/10 13:58:21 jsing Exp $ */
/* ====================================================================
* Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
*
@@ -114,6 +114,9 @@
* SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project.
*/
+#include <string.h>
+#include <unistd.h>
+
#include "cryptlib.h"
#include <openssl/safestack.h>
diff --git a/lib/libssl/src/crypto/cryptlib.h b/lib/libssl/src/crypto/cryptlib.h
index 5690133f5bf..b45f2c03b47 100644
--- a/lib/libssl/src/crypto/cryptlib.h
+++ b/lib/libssl/src/crypto/cryptlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptlib.h,v 1.19 2014/06/12 15:49:27 deraadt Exp $ */
+/* $OpenBSD: cryptlib.h,v 1.20 2014/07/10 13:58:21 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -59,11 +59,6 @@
#ifndef HEADER_CRYPTLIB_H
#define HEADER_CRYPTLIB_H
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
#include <openssl/crypto.h>
#include <openssl/buffer.h>
#include <openssl/bio.h>
diff --git a/lib/libssl/src/crypto/dh/dh_pmeth.c b/lib/libssl/src/crypto/dh/dh_pmeth.c
index fb441b563bd..aa681add063 100644
--- a/lib/libssl/src/crypto/dh/dh_pmeth.c
+++ b/lib/libssl/src/crypto/dh/dh_pmeth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dh_pmeth.c,v 1.7 2014/07/09 13:26:47 miod Exp $ */
+/* $OpenBSD: dh_pmeth.c,v 1.8 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -56,8 +56,10 @@
*
*/
-#include <stdio.h>
#include <limits.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/dsa/dsa_gen.c b/lib/libssl/src/crypto/dsa/dsa_gen.c
index d97f988688a..491b4de5f97 100644
--- a/lib/libssl/src/crypto/dsa/dsa_gen.c
+++ b/lib/libssl/src/crypto/dsa/dsa_gen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsa_gen.c,v 1.13 2014/07/09 10:16:24 miod Exp $ */
+/* $OpenBSD: dsa_gen.c,v 1.14 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -61,6 +61,8 @@
#ifndef OPENSSL_NO_SHA
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/bn.h>
diff --git a/lib/libssl/src/crypto/dsa/dsa_pmeth.c b/lib/libssl/src/crypto/dsa/dsa_pmeth.c
index 73e0b9fb2a3..2e44e8d5dd5 100644
--- a/lib/libssl/src/crypto/dsa/dsa_pmeth.c
+++ b/lib/libssl/src/crypto/dsa/dsa_pmeth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsa_pmeth.c,v 1.8 2014/07/09 11:08:31 miod Exp $ */
+/* $OpenBSD: dsa_pmeth.c,v 1.9 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -56,8 +56,10 @@
*
*/
-#include <stdio.h>
#include <limits.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/dso/dso_dlfcn.c b/lib/libssl/src/crypto/dso/dso_dlfcn.c
index e34157075ab..e88553f6445 100644
--- a/lib/libssl/src/crypto/dso/dso_dlfcn.c
+++ b/lib/libssl/src/crypto/dso/dso_dlfcn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dso_dlfcn.c,v 1.25 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: dso_dlfcn.c,v 1.26 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL
* project 2000.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/dso.h>
diff --git a/lib/libssl/src/crypto/dso/dso_lib.c b/lib/libssl/src/crypto/dso/dso_lib.c
index 99354676f97..b76bd1ca843 100644
--- a/lib/libssl/src/crypto/dso/dso_lib.c
+++ b/lib/libssl/src/crypto/dso/dso_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dso_lib.c,v 1.16 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: dso_lib.c,v 1.17 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL
* project 2000.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include <openssl/crypto.h>
#include "cryptlib.h"
#include <openssl/dso.h>
diff --git a/lib/libssl/src/crypto/ec/ec_pmeth.c b/lib/libssl/src/crypto/ec/ec_pmeth.c
index e6c5cfd8eef..043c2a5a0cd 100644
--- a/lib/libssl/src/crypto/ec/ec_pmeth.c
+++ b/lib/libssl/src/crypto/ec/ec_pmeth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ec_pmeth.c,v 1.5 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: ec_pmeth.c,v 1.6 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/ec/eck_prn.c b/lib/libssl/src/crypto/ec/eck_prn.c
index 8e25ad5d73d..eba10245d8f 100644
--- a/lib/libssl/src/crypto/ec/eck_prn.c
+++ b/lib/libssl/src/crypto/ec/eck_prn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eck_prn.c,v 1.6 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: eck_prn.c,v 1.7 2014/07/10 13:58:22 jsing Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
@@ -62,6 +62,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/ec.h>
diff --git a/lib/libssl/src/crypto/engine/eng_cnf.c b/lib/libssl/src/crypto/engine/eng_cnf.c
index 1689bf44d2c..d9cc5986db0 100644
--- a/lib/libssl/src/crypto/engine/eng_cnf.c
+++ b/lib/libssl/src/crypto/engine/eng_cnf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eng_cnf.c,v 1.11 2014/06/22 11:33:47 jsing Exp $ */
+/* $OpenBSD: eng_cnf.c,v 1.12 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL
* project 2001.
*/
@@ -56,6 +56,8 @@
*
*/
+#include <string.h>
+
#include "eng_int.h"
#include <openssl/conf.h>
diff --git a/lib/libssl/src/crypto/engine/eng_ctrl.c b/lib/libssl/src/crypto/engine/eng_ctrl.c
index d1f43e19491..ea31bfc582f 100644
--- a/lib/libssl/src/crypto/engine/eng_ctrl.c
+++ b/lib/libssl/src/crypto/engine/eng_ctrl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eng_ctrl.c,v 1.8 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: eng_ctrl.c,v 1.9 2014/07/10 13:58:22 jsing Exp $ */
/* ====================================================================
* Copyright (c) 1999-2001 The OpenSSL Project. All rights reserved.
*
@@ -53,6 +53,8 @@
*
*/
+#include <string.h>
+
#include "eng_int.h"
/* When querying a ENGINE-specific control command's 'description', this string
diff --git a/lib/libssl/src/crypto/engine/eng_dyn.c b/lib/libssl/src/crypto/engine/eng_dyn.c
index 05adf0d6ac0..ec2ad7a8e77 100644
--- a/lib/libssl/src/crypto/engine/eng_dyn.c
+++ b/lib/libssl/src/crypto/engine/eng_dyn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eng_dyn.c,v 1.10 2014/07/09 08:52:00 bcook Exp $ */
+/* $OpenBSD: eng_dyn.c,v 1.11 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL
* project 2001.
*/
@@ -56,6 +56,7 @@
*
*/
+#include <string.h>
#include "eng_int.h"
#include <openssl/dso.h>
diff --git a/lib/libssl/src/crypto/engine/eng_fat.c b/lib/libssl/src/crypto/engine/eng_fat.c
index 94190ca7f18..d995104a7ca 100644
--- a/lib/libssl/src/crypto/engine/eng_fat.c
+++ b/lib/libssl/src/crypto/engine/eng_fat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eng_fat.c,v 1.12 2014/06/22 11:33:47 jsing Exp $ */
+/* $OpenBSD: eng_fat.c,v 1.13 2014/07/10 13:58:22 jsing Exp $ */
/* ====================================================================
* Copyright (c) 1999-2001 The OpenSSL Project. All rights reserved.
*
@@ -58,6 +58,8 @@
* SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project.
*/
+#include <string.h>
+
#include "eng_int.h"
#include <openssl/conf.h>
diff --git a/lib/libssl/src/crypto/engine/eng_lib.c b/lib/libssl/src/crypto/engine/eng_lib.c
index 569b7199cec..118fa6cb9cf 100644
--- a/lib/libssl/src/crypto/engine/eng_lib.c
+++ b/lib/libssl/src/crypto/engine/eng_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eng_lib.c,v 1.8 2014/06/22 12:05:09 jsing Exp $ */
+/* $OpenBSD: eng_lib.c,v 1.9 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL
* project 2000.
*/
@@ -56,6 +56,8 @@
*
*/
+#include <string.h>
+
#include "eng_int.h"
#include <openssl/rand.h>
diff --git a/lib/libssl/src/crypto/engine/eng_list.c b/lib/libssl/src/crypto/engine/eng_list.c
index dddbaf0cc0c..d7aef439993 100644
--- a/lib/libssl/src/crypto/engine/eng_list.c
+++ b/lib/libssl/src/crypto/engine/eng_list.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eng_list.c,v 1.12 2014/06/29 00:52:18 deraadt Exp $ */
+/* $OpenBSD: eng_list.c,v 1.13 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL
* project 2000.
*/
@@ -61,6 +61,9 @@
* SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project.
*/
+#include <string.h>
+#include <unistd.h>
+
#include "eng_int.h"
/* The linked-list of pointers to engine types. engine_list_head
diff --git a/lib/libssl/src/crypto/engine/eng_openssl.c b/lib/libssl/src/crypto/engine/eng_openssl.c
index 9ba61dd842b..882af0341f6 100644
--- a/lib/libssl/src/crypto/engine/eng_openssl.c
+++ b/lib/libssl/src/crypto/engine/eng_openssl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eng_openssl.c,v 1.6 2014/06/22 12:05:09 jsing Exp $ */
+/* $OpenBSD: eng_openssl.c,v 1.7 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL
* project 2000.
*/
@@ -61,8 +61,9 @@
* SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project.
*/
-
#include <stdio.h>
+#include <string.h>
+
#include <openssl/crypto.h>
#include "cryptlib.h"
#include <openssl/engine.h>
diff --git a/lib/libssl/src/crypto/engine/tb_asnmth.c b/lib/libssl/src/crypto/engine/tb_asnmth.c
index 412665cd9e1..d43eea5447e 100644
--- a/lib/libssl/src/crypto/engine/tb_asnmth.c
+++ b/lib/libssl/src/crypto/engine/tb_asnmth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tb_asnmth.c,v 1.3 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: tb_asnmth.c,v 1.4 2014/07/10 13:58:22 jsing Exp $ */
/* ====================================================================
* Copyright (c) 2006 The OpenSSL Project. All rights reserved.
*
@@ -53,6 +53,8 @@
*
*/
+#include <string.h>
+
#include "eng_int.h"
#include "asn1_locl.h"
#include <openssl/evp.h>
diff --git a/lib/libssl/src/crypto/err/err_prn.c b/lib/libssl/src/crypto/err/err_prn.c
index 25b26f0d0bc..75d7ed7a0a3 100644
--- a/lib/libssl/src/crypto/err/err_prn.c
+++ b/lib/libssl/src/crypto/err/err_prn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: err_prn.c,v 1.14 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: err_prn.c,v 1.15 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/lhash.h>
#include <openssl/crypto.h>
diff --git a/lib/libssl/src/crypto/evp/bio_b64.c b/lib/libssl/src/crypto/evp/bio_b64.c
index 2d8a6ef9207..7211195adf1 100644
--- a/lib/libssl/src/crypto/evp/bio_b64.c
+++ b/lib/libssl/src/crypto/evp/bio_b64.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bio_b64.c,v 1.16 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: bio_b64.c,v 1.17 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,8 +56,10 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/evp.h>
diff --git a/lib/libssl/src/crypto/evp/bio_enc.c b/lib/libssl/src/crypto/evp/bio_enc.c
index bcc45ea6d46..3b936f58432 100644
--- a/lib/libssl/src/crypto/evp/bio_enc.c
+++ b/lib/libssl/src/crypto/evp/bio_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bio_enc.c,v 1.16 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: bio_enc.c,v 1.17 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,8 +56,10 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/evp.h>
diff --git a/lib/libssl/src/crypto/evp/digest.c b/lib/libssl/src/crypto/evp/digest.c
index f598e78911d..5d5799a49fc 100644
--- a/lib/libssl/src/crypto/evp/digest.c
+++ b/lib/libssl/src/crypto/evp/digest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: digest.c,v 1.18 2014/06/15 15:46:22 jsing Exp $ */
+/* $OpenBSD: digest.c,v 1.19 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -110,6 +110,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/objects.h>
#include <openssl/evp.h>
diff --git a/lib/libssl/src/crypto/evp/e_des3.c b/lib/libssl/src/crypto/evp/e_des3.c
index 211e525e997..41fa09a2d98 100644
--- a/lib/libssl/src/crypto/evp/e_des3.c
+++ b/lib/libssl/src/crypto/evp/e_des3.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: e_des3.c,v 1.13 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: e_des3.c,v 1.14 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#ifndef OPENSSL_NO_DES
#include <openssl/evp.h>
@@ -65,7 +67,6 @@
#include <openssl/des.h>
#include <openssl/rand.h>
-
static int des_ede_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
const unsigned char *iv, int enc);
diff --git a/lib/libssl/src/crypto/evp/e_null.c b/lib/libssl/src/crypto/evp/e_null.c
index 2c81de05d37..0d0a06f2e31 100644
--- a/lib/libssl/src/crypto/evp/e_null.c
+++ b/lib/libssl/src/crypto/evp/e_null.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: e_null.c,v 1.12 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: e_null.c,v 1.13 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/evp/e_xcbc_d.c b/lib/libssl/src/crypto/evp/e_xcbc_d.c
index 0f827a18d1a..401fb2b7662 100644
--- a/lib/libssl/src/crypto/evp/e_xcbc_d.c
+++ b/lib/libssl/src/crypto/evp/e_xcbc_d.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: e_xcbc_d.c,v 1.9 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: e_xcbc_d.c,v 1.10 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#ifndef OPENSSL_NO_DES
diff --git a/lib/libssl/src/crypto/evp/encode.c b/lib/libssl/src/crypto/evp/encode.c
index 30c4a16803b..a83cf76c9f5 100644
--- a/lib/libssl/src/crypto/evp/encode.c
+++ b/lib/libssl/src/crypto/evp/encode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: encode.c,v 1.16 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: encode.c,v 1.17 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/evp.h>
diff --git a/lib/libssl/src/crypto/evp/evp_enc.c b/lib/libssl/src/crypto/evp/evp_enc.c
index c384a3b2253..36e39a46688 100644
--- a/lib/libssl/src/crypto/evp/evp_enc.c
+++ b/lib/libssl/src/crypto/evp/evp_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: evp_enc.c,v 1.21 2014/07/09 11:10:50 bcook Exp $ */
+/* $OpenBSD: evp_enc.c,v 1.22 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/err.h>
diff --git a/lib/libssl/src/crypto/evp/evp_key.c b/lib/libssl/src/crypto/evp/evp_key.c
index 322ded7e0a2..0c5d9bc0019 100644
--- a/lib/libssl/src/crypto/evp/evp_key.c
+++ b/lib/libssl/src/crypto/evp/evp_key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: evp_key.c,v 1.15 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: evp_key.c,v 1.16 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/x509.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/evp/evp_lib.c b/lib/libssl/src/crypto/evp/evp_lib.c
index a2ecdb8cf1f..16647032881 100644
--- a/lib/libssl/src/crypto/evp/evp_lib.c
+++ b/lib/libssl/src/crypto/evp/evp_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: evp_lib.c,v 1.11 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: evp_lib.c,v 1.12 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/evp/evp_pbe.c b/lib/libssl/src/crypto/evp/evp_pbe.c
index de87ecce590..e53a681d5f9 100644
--- a/lib/libssl/src/crypto/evp/evp_pbe.c
+++ b/lib/libssl/src/crypto/evp/evp_pbe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: evp_pbe.c,v 1.17 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: evp_pbe.c,v 1.18 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/pkcs12.h>
diff --git a/lib/libssl/src/crypto/evp/p5_crpt.c b/lib/libssl/src/crypto/evp/p5_crpt.c
index 9074d11d6bd..1fe6edb1437 100644
--- a/lib/libssl/src/crypto/evp/p5_crpt.c
+++ b/lib/libssl/src/crypto/evp/p5_crpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p5_crpt.c,v 1.11 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: p5_crpt.c,v 1.12 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -58,6 +58,8 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/x509.h>
#include <openssl/evp.h>
diff --git a/lib/libssl/src/crypto/evp/p5_crpt2.c b/lib/libssl/src/crypto/evp/p5_crpt2.c
index 45931485912..3a182aabfd0 100644
--- a/lib/libssl/src/crypto/evp/p5_crpt2.c
+++ b/lib/libssl/src/crypto/evp/p5_crpt2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p5_crpt2.c,v 1.14 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: p5_crpt2.c,v 1.15 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -55,8 +55,11 @@
* Hudson (tjh@cryptsoft.com).
*
*/
+
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
+
#include "cryptlib.h"
#if !defined(OPENSSL_NO_HMAC) && !defined(OPENSSL_NO_SHA)
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/evp/pmeth_lib.c b/lib/libssl/src/crypto/evp/pmeth_lib.c
index 4f3cb9a45b6..6f8515c670a 100644
--- a/lib/libssl/src/crypto/evp/pmeth_lib.c
+++ b/lib/libssl/src/crypto/evp/pmeth_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmeth_lib.c,v 1.5 2014/06/12 15:49:29 deraadt Exp $ */
+/* $OpenBSD: pmeth_lib.c,v 1.6 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -58,6 +58,8 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/objects.h>
#include <openssl/evp.h>
diff --git a/lib/libssl/src/crypto/hmac/hm_ameth.c b/lib/libssl/src/crypto/hmac/hm_ameth.c
index c3e9038c0c0..e552f6ea2c2 100644
--- a/lib/libssl/src/crypto/hmac/hm_ameth.c
+++ b/lib/libssl/src/crypto/hmac/hm_ameth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hm_ameth.c,v 1.6 2014/06/21 13:39:46 jsing Exp $ */
+/* $OpenBSD: hm_ameth.c,v 1.7 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2007.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/evp.h>
#include "asn1_locl.h"
diff --git a/lib/libssl/src/crypto/hmac/hm_pmeth.c b/lib/libssl/src/crypto/hmac/hm_pmeth.c
index 75b5ad469d8..8bcd3c557f7 100644
--- a/lib/libssl/src/crypto/hmac/hm_pmeth.c
+++ b/lib/libssl/src/crypto/hmac/hm_pmeth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hm_pmeth.c,v 1.6 2014/06/21 13:39:46 jsing Exp $ */
+/* $OpenBSD: hm_pmeth.c,v 1.7 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2007.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/x509.h>
#include <openssl/x509v3.h>
diff --git a/lib/libssl/src/crypto/objects/obj_dat.c b/lib/libssl/src/crypto/objects/obj_dat.c
index 72f275fb7d5..7221cbc847f 100644
--- a/lib/libssl/src/crypto/objects/obj_dat.c
+++ b/lib/libssl/src/crypto/objects/obj_dat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: obj_dat.c,v 1.27 2014/06/12 15:49:30 deraadt Exp $ */
+/* $OpenBSD: obj_dat.c,v 1.28 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,9 +56,11 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
#include <ctype.h>
#include <limits.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/lhash.h>
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/objects/obj_lib.c b/lib/libssl/src/crypto/objects/obj_lib.c
index 4abaaaf1aa9..41e0af696ea 100644
--- a/lib/libssl/src/crypto/objects/obj_lib.c
+++ b/lib/libssl/src/crypto/objects/obj_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: obj_lib.c,v 1.10 2014/06/12 15:49:30 deraadt Exp $ */
+/* $OpenBSD: obj_lib.c,v 1.11 2014/07/10 13:58:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/lhash.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/ocsp/ocsp_ext.c b/lib/libssl/src/crypto/ocsp/ocsp_ext.c
index aa0faf05b8a..a0e58e7401f 100644
--- a/lib/libssl/src/crypto/ocsp/ocsp_ext.c
+++ b/lib/libssl/src/crypto/ocsp/ocsp_ext.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ocsp_ext.c,v 1.9 2014/06/12 15:49:30 deraadt Exp $ */
+/* $OpenBSD: ocsp_ext.c,v 1.10 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL
* project. */
@@ -61,8 +61,10 @@
*
*/
-#include <stdio.h>
#include <cryptlib.h>
+#include <stdio.h>
+#include <string.h>
+
#include <openssl/objects.h>
#include <openssl/x509.h>
#include <openssl/ocsp.h>
diff --git a/lib/libssl/src/crypto/ocsp/ocsp_lib.c b/lib/libssl/src/crypto/ocsp/ocsp_lib.c
index d32f0632098..ce6b0dc65b3 100644
--- a/lib/libssl/src/crypto/ocsp/ocsp_lib.c
+++ b/lib/libssl/src/crypto/ocsp/ocsp_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ocsp_lib.c,v 1.11 2014/07/09 20:34:29 tedu Exp $ */
+/* $OpenBSD: ocsp_lib.c,v 1.12 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL
* project. */
@@ -61,8 +61,10 @@
*
*/
-#include <stdio.h>
#include <cryptlib.h>
+#include <stdio.h>
+#include <string.h>
+
#include <openssl/objects.h>
#include <openssl/rand.h>
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/pem/pem_info.c b/lib/libssl/src/crypto/pem/pem_info.c
index 62e2d4853f6..0c8946550e2 100644
--- a/lib/libssl/src/crypto/pem/pem_info.c
+++ b/lib/libssl/src/crypto/pem/pem_info.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pem_info.c,v 1.16 2014/07/10 11:20:49 miod Exp $ */
+/* $OpenBSD: pem_info.c,v 1.17 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/pem/pem_lib.c b/lib/libssl/src/crypto/pem/pem_lib.c
index 1a531d77498..130a2739a53 100644
--- a/lib/libssl/src/crypto/pem/pem_lib.c
+++ b/lib/libssl/src/crypto/pem/pem_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pem_lib.c,v 1.30 2014/07/10 11:25:13 tedu Exp $ */
+/* $OpenBSD: pem_lib.c,v 1.31 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,8 +56,10 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/pem/pem_pkey.c b/lib/libssl/src/crypto/pem/pem_pkey.c
index c2250b7fb18..cfa3c127523 100644
--- a/lib/libssl/src/crypto/pem/pem_pkey.c
+++ b/lib/libssl/src/crypto/pem/pem_pkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pem_pkey.c,v 1.14 2014/06/12 15:49:30 deraadt Exp $ */
+/* $OpenBSD: pem_pkey.c,v 1.15 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/pem/pem_seal.c b/lib/libssl/src/crypto/pem/pem_seal.c
index 459ea413a76..45ea52b24b7 100644
--- a/lib/libssl/src/crypto/pem/pem_seal.c
+++ b/lib/libssl/src/crypto/pem/pem_seal.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pem_seal.c,v 1.17 2014/06/12 15:49:30 deraadt Exp $ */
+/* $OpenBSD: pem_seal.c,v 1.18 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,9 +56,11 @@
* [including the GNU Public Licence.]
*/
+#include <stdio.h>
+#include <string.h>
+
#include <openssl/opensslconf.h> /* for OPENSSL_NO_RSA */
#ifndef OPENSSL_NO_RSA
-#include <stdio.h>
#include "cryptlib.h"
#include <openssl/evp.h>
#include <openssl/rand.h>
diff --git a/lib/libssl/src/crypto/pem/pvkfmt.c b/lib/libssl/src/crypto/pem/pvkfmt.c
index c3e77cbeb6b..53c96e088c3 100644
--- a/lib/libssl/src/crypto/pem/pvkfmt.c
+++ b/lib/libssl/src/crypto/pem/pvkfmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pvkfmt.c,v 1.6 2014/06/12 15:49:30 deraadt Exp $ */
+/* $OpenBSD: pvkfmt.c,v 1.7 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2005.
*/
@@ -60,6 +60,8 @@
* and PRIVATEKEYBLOB).
*/
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/pem.h>
#include <openssl/rand.h>
diff --git a/lib/libssl/src/crypto/pkcs12/p12_key.c b/lib/libssl/src/crypto/pkcs12/p12_key.c
index ff69b8ebc54..379108f4b54 100644
--- a/lib/libssl/src/crypto/pkcs12/p12_key.c
+++ b/lib/libssl/src/crypto/pkcs12/p12_key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p12_key.c,v 1.18 2014/07/10 12:09:43 jsing Exp $ */
+/* $OpenBSD: p12_key.c,v 1.19 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/pkcs12.h>
#include <openssl/bn.h>
diff --git a/lib/libssl/src/crypto/pkcs12/p12_mutl.c b/lib/libssl/src/crypto/pkcs12/p12_mutl.c
index 7a2fab1666a..fabc96e8584 100644
--- a/lib/libssl/src/crypto/pkcs12/p12_mutl.c
+++ b/lib/libssl/src/crypto/pkcs12/p12_mutl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p12_mutl.c,v 1.14 2014/07/08 09:24:53 jsing Exp $ */
+/* $OpenBSD: p12_mutl.c,v 1.15 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -56,8 +56,10 @@
*
*/
-#ifndef OPENSSL_NO_HMAC
#include <stdio.h>
+#include <string.h>
+
+#ifndef OPENSSL_NO_HMAC
#include "cryptlib.h"
#include <openssl/hmac.h>
#include <openssl/rand.h>
diff --git a/lib/libssl/src/crypto/pkcs12/p12_utl.c b/lib/libssl/src/crypto/pkcs12/p12_utl.c
index 618e6c699f0..712e16cf99d 100644
--- a/lib/libssl/src/crypto/pkcs12/p12_utl.c
+++ b/lib/libssl/src/crypto/pkcs12/p12_utl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p12_utl.c,v 1.10 2014/07/08 09:24:53 jsing Exp $ */
+/* $OpenBSD: p12_utl.c,v 1.11 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/pkcs12.h>
diff --git a/lib/libssl/src/crypto/pkcs7/pk7_doit.c b/lib/libssl/src/crypto/pkcs7/pk7_doit.c
index 0abcde7febe..8ef3f392dfe 100644
--- a/lib/libssl/src/crypto/pkcs7/pk7_doit.c
+++ b/lib/libssl/src/crypto/pkcs7/pk7_doit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pk7_doit.c,v 1.25 2014/07/10 12:08:50 miod Exp $ */
+/* $OpenBSD: pk7_doit.c,v 1.26 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/rand.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/rsa/rsa_none.c b/lib/libssl/src/crypto/rsa/rsa_none.c
index da95ecf6198..503d93bb68f 100644
--- a/lib/libssl/src/crypto/rsa/rsa_none.c
+++ b/lib/libssl/src/crypto/rsa/rsa_none.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_none.c,v 1.7 2014/07/10 11:25:13 tedu Exp $ */
+/* $OpenBSD: rsa_none.c,v 1.8 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/bn.h>
#include <openssl/rsa.h>
diff --git a/lib/libssl/src/crypto/rsa/rsa_oaep.c b/lib/libssl/src/crypto/rsa/rsa_oaep.c
index 38ba76b90a6..893fbc04b89 100644
--- a/lib/libssl/src/crypto/rsa/rsa_oaep.c
+++ b/lib/libssl/src/crypto/rsa/rsa_oaep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_oaep.c,v 1.20 2014/07/10 11:25:13 tedu Exp $ */
+/* $OpenBSD: rsa_oaep.c,v 1.21 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Ulf Moeller. This software is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. */
@@ -18,9 +18,10 @@
* an equivalent notion.
*/
+#include <stdio.h>
+#include <string.h>
#if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA1)
-#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
#include <openssl/rsa.h>
diff --git a/lib/libssl/src/crypto/rsa/rsa_pk1.c b/lib/libssl/src/crypto/rsa/rsa_pk1.c
index b4434b455a8..6d11ee19f9a 100644
--- a/lib/libssl/src/crypto/rsa/rsa_pk1.c
+++ b/lib/libssl/src/crypto/rsa/rsa_pk1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_pk1.c,v 1.11 2014/07/10 11:25:13 tedu Exp $ */
+/* $OpenBSD: rsa_pk1.c,v 1.12 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/bn.h>
#include <openssl/rsa.h>
diff --git a/lib/libssl/src/crypto/rsa/rsa_pmeth.c b/lib/libssl/src/crypto/rsa/rsa_pmeth.c
index e083ded40c2..f9ebd9babac 100644
--- a/lib/libssl/src/crypto/rsa/rsa_pmeth.c
+++ b/lib/libssl/src/crypto/rsa/rsa_pmeth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_pmeth.c,v 1.11 2014/07/10 07:43:11 jsing Exp $ */
+/* $OpenBSD: rsa_pmeth.c,v 1.12 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -56,8 +56,10 @@
*
*/
-#include <stdio.h>
#include <limits.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/rsa/rsa_pss.c b/lib/libssl/src/crypto/rsa/rsa_pss.c
index 09bf32439bf..fa32a856bac 100644
--- a/lib/libssl/src/crypto/rsa/rsa_pss.c
+++ b/lib/libssl/src/crypto/rsa/rsa_pss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_pss.c,v 1.7 2014/07/09 19:51:38 jsing Exp $ */
+/* $OpenBSD: rsa_pss.c,v 1.8 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2005.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/bn.h>
#include <openssl/rsa.h>
diff --git a/lib/libssl/src/crypto/rsa/rsa_saos.c b/lib/libssl/src/crypto/rsa/rsa_saos.c
index 0ff9f570f43..f2cf06af4cb 100644
--- a/lib/libssl/src/crypto/rsa/rsa_saos.c
+++ b/lib/libssl/src/crypto/rsa/rsa_saos.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_saos.c,v 1.13 2014/07/09 19:51:38 jsing Exp $ */
+/* $OpenBSD: rsa_saos.c,v 1.14 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/bn.h>
#include <openssl/rsa.h>
diff --git a/lib/libssl/src/crypto/rsa/rsa_sign.c b/lib/libssl/src/crypto/rsa/rsa_sign.c
index 11ee2d128da..c7e0a55829f 100644
--- a/lib/libssl/src/crypto/rsa/rsa_sign.c
+++ b/lib/libssl/src/crypto/rsa/rsa_sign.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_sign.c,v 1.20 2014/07/09 19:51:38 jsing Exp $ */
+/* $OpenBSD: rsa_sign.c,v 1.21 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/bn.h>
#include <openssl/rsa.h>
diff --git a/lib/libssl/src/crypto/rsa/rsa_ssl.c b/lib/libssl/src/crypto/rsa/rsa_ssl.c
index 6c8a02086cf..71372341c20 100644
--- a/lib/libssl/src/crypto/rsa/rsa_ssl.c
+++ b/lib/libssl/src/crypto/rsa/rsa_ssl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_ssl.c,v 1.11 2014/07/10 11:25:13 tedu Exp $ */
+/* $OpenBSD: rsa_ssl.c,v 1.12 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/bn.h>
#include <openssl/rsa.h>
diff --git a/lib/libssl/src/crypto/rsa/rsa_x931.c b/lib/libssl/src/crypto/rsa/rsa_x931.c
index e9f4df341d7..5809f62cbd0 100644
--- a/lib/libssl/src/crypto/rsa/rsa_x931.c
+++ b/lib/libssl/src/crypto/rsa/rsa_x931.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_x931.c,v 1.6 2014/07/10 11:25:13 tedu Exp $ */
+/* $OpenBSD: rsa_x931.c,v 1.7 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2005.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/bn.h>
#include <openssl/rsa.h>
diff --git a/lib/libssl/src/crypto/stack/stack.c b/lib/libssl/src/crypto/stack/stack.c
index 5e3ab19cd3c..a219d959e92 100644
--- a/lib/libssl/src/crypto/stack/stack.c
+++ b/lib/libssl/src/crypto/stack/stack.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stack.c,v 1.16 2014/07/09 11:10:51 bcook Exp $ */
+/* $OpenBSD: stack.c,v 1.17 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -65,7 +65,10 @@
*
* 1.0 eay - First version 29/07/92
*/
+
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/stack.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/ts/ts_lib.c b/lib/libssl/src/crypto/ts/ts_lib.c
index 34ef9a476e9..ad37037b7fc 100644
--- a/lib/libssl/src/crypto/ts/ts_lib.c
+++ b/lib/libssl/src/crypto/ts/ts_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ts_lib.c,v 1.6 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: ts_lib.c,v 1.7 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
* project 2002.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/objects.h>
#include <openssl/bn.h>
diff --git a/lib/libssl/src/crypto/ts/ts_rsp_sign.c b/lib/libssl/src/crypto/ts/ts_rsp_sign.c
index e56bfb06cb7..5421085b5ab 100644
--- a/lib/libssl/src/crypto/ts/ts_rsp_sign.c
+++ b/lib/libssl/src/crypto/ts/ts_rsp_sign.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ts_rsp_sign.c,v 1.15 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: ts_rsp_sign.c,v 1.16 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
* project 2002.
*/
@@ -56,10 +56,12 @@
*
*/
-#include "cryptlib.h"
-
#include <sys/time.h>
+#include <string.h>
+
+#include "cryptlib.h"
+
#include <openssl/objects.h>
#include <openssl/ts.h>
#include <openssl/pkcs7.h>
diff --git a/lib/libssl/src/crypto/ts/ts_rsp_verify.c b/lib/libssl/src/crypto/ts/ts_rsp_verify.c
index 2da5a07bcee..8b3d5a86ac8 100644
--- a/lib/libssl/src/crypto/ts/ts_rsp_verify.c
+++ b/lib/libssl/src/crypto/ts/ts_rsp_verify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ts_rsp_verify.c,v 1.10 2014/07/09 11:12:13 bcook Exp $ */
+/* $OpenBSD: ts_rsp_verify.c,v 1.11 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
* project 2002.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/objects.h>
#include <openssl/ts.h>
diff --git a/lib/libssl/src/crypto/ts/ts_verify_ctx.c b/lib/libssl/src/crypto/ts/ts_verify_ctx.c
index f8485fd5a3c..3b500233db4 100644
--- a/lib/libssl/src/crypto/ts/ts_verify_ctx.c
+++ b/lib/libssl/src/crypto/ts/ts_verify_ctx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ts_verify_ctx.c,v 1.5 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: ts_verify_ctx.c,v 1.6 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
* project 2003.
*/
@@ -56,6 +56,8 @@
*
*/
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/objects.h>
#include <openssl/ts.h>
diff --git a/lib/libssl/src/crypto/x509/by_dir.c b/lib/libssl/src/crypto/x509/by_dir.c
index b4c00c820cd..2a5fb04373e 100644
--- a/lib/libssl/src/crypto/x509/by_dir.c
+++ b/lib/libssl/src/crypto/x509/by_dir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: by_dir.c,v 1.29 2014/06/24 19:37:58 miod Exp $ */
+/* $OpenBSD: by_dir.c,v 1.30 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,9 +56,11 @@
* [including the GNU Public Licence.]
*/
+#include <errno.h>
#include <stdio.h>
+#include <string.h>
#include <time.h>
-#include <errno.h>
+#include <unistd.h>
#include "cryptlib.h"
diff --git a/lib/libssl/src/crypto/x509/by_file.c b/lib/libssl/src/crypto/x509/by_file.c
index bb296e2a42d..cf3553181d4 100644
--- a/lib/libssl/src/crypto/x509/by_file.c
+++ b/lib/libssl/src/crypto/x509/by_file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: by_file.c,v 1.13 2014/06/23 22:19:02 deraadt Exp $ */
+/* $OpenBSD: by_file.c,v 1.14 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,9 +56,10 @@
* [including the GNU Public Licence.]
*/
+#include <errno.h>
#include <stdio.h>
#include <time.h>
-#include <errno.h>
+#include <unistd.h>
#include "cryptlib.h"
#include <openssl/lhash.h>
diff --git a/lib/libssl/src/crypto/x509/x509_cmp.c b/lib/libssl/src/crypto/x509/x509_cmp.c
index 4bf5c080655..aa85286d8b3 100644
--- a/lib/libssl/src/crypto/x509/x509_cmp.c
+++ b/lib/libssl/src/crypto/x509/x509_cmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_cmp.c,v 1.19 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: x509_cmp.c,v 1.20 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,8 +56,10 @@
* [including the GNU Public Licence.]
*/
-#include <stdio.h>
#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/x509/x509_obj.c b/lib/libssl/src/crypto/x509/x509_obj.c
index 9647ee54bf3..88f058d882f 100644
--- a/lib/libssl/src/crypto/x509/x509_obj.c
+++ b/lib/libssl/src/crypto/x509/x509_obj.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_obj.c,v 1.14 2014/07/10 11:25:13 tedu Exp $ */
+/* $OpenBSD: x509_obj.c,v 1.15 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/lhash.h>
#include <openssl/objects.h>
diff --git a/lib/libssl/src/crypto/x509/x509_vfy.c b/lib/libssl/src/crypto/x509/x509_vfy.c
index 17713787468..5150ffa5d23 100644
--- a/lib/libssl/src/crypto/x509/x509_vfy.c
+++ b/lib/libssl/src/crypto/x509/x509_vfy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_vfy.c,v 1.30 2014/07/09 11:10:51 bcook Exp $ */
+/* $OpenBSD: x509_vfy.c,v 1.31 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,9 +56,11 @@
* [including the GNU Public Licence.]
*/
+#include <errno.h>
#include <stdio.h>
+#include <string.h>
#include <time.h>
-#include <errno.h>
+#include <unistd.h>
#include "cryptlib.h"
#include <openssl/crypto.h>
diff --git a/lib/libssl/src/crypto/x509/x509_vpm.c b/lib/libssl/src/crypto/x509/x509_vpm.c
index 2ee592784dc..3730d593cdd 100644
--- a/lib/libssl/src/crypto/x509/x509_vpm.c
+++ b/lib/libssl/src/crypto/x509/x509_vpm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_vpm.c,v 1.7 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: x509_vpm.c,v 1.8 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2004.
*/
@@ -57,6 +57,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include "cryptlib.h"
#include <openssl/crypto.h>
diff --git a/lib/libssl/src/crypto/x509/x509name.c b/lib/libssl/src/crypto/x509/x509name.c
index 3ae52640175..4151ea0bc52 100644
--- a/lib/libssl/src/crypto/x509/x509name.c
+++ b/lib/libssl/src/crypto/x509/x509name.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509name.c,v 1.10 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: x509name.c,v 1.11 2014/07/10 13:58:23 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include <openssl/stack.h>
#include "cryptlib.h"
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/x509/x509spki.c b/lib/libssl/src/crypto/x509/x509spki.c
index 3e152ebaea8..28e499b9b22 100644
--- a/lib/libssl/src/crypto/x509/x509spki.c
+++ b/lib/libssl/src/crypto/x509/x509spki.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509spki.c,v 1.10 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: x509spki.c,v 1.11 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_akey.c b/lib/libssl/src/crypto/x509v3/v3_akey.c
index 22af047eadd..870b5415d01 100644
--- a/lib/libssl/src/crypto/x509v3/v3_akey.c
+++ b/lib/libssl/src/crypto/x509v3/v3_akey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_akey.c,v 1.10 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_akey.c,v 1.11 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_alt.c b/lib/libssl/src/crypto/x509v3/v3_alt.c
index 857eaec1c72..eaf17938fe5 100644
--- a/lib/libssl/src/crypto/x509v3/v3_alt.c
+++ b/lib/libssl/src/crypto/x509v3/v3_alt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_alt.c,v 1.19 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_alt.c,v 1.20 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/x509v3.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_bcons.c b/lib/libssl/src/crypto/x509v3/v3_bcons.c
index 04beebc6e20..ec7e68f82cf 100644
--- a/lib/libssl/src/crypto/x509v3/v3_bcons.c
+++ b/lib/libssl/src/crypto/x509v3/v3_bcons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_bcons.c,v 1.8 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_bcons.c,v 1.9 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -56,8 +56,9 @@
*
*/
-
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/asn1t.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_bitst.c b/lib/libssl/src/crypto/x509v3/v3_bitst.c
index f26d5b9f640..3be899252ac 100644
--- a/lib/libssl/src/crypto/x509v3/v3_bitst.c
+++ b/lib/libssl/src/crypto/x509v3/v3_bitst.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_bitst.c,v 1.8 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_bitst.c,v 1.9 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/x509v3.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_conf.c b/lib/libssl/src/crypto/x509v3/v3_conf.c
index 71bf28ec44c..c827128403b 100644
--- a/lib/libssl/src/crypto/x509v3/v3_conf.c
+++ b/lib/libssl/src/crypto/x509v3/v3_conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_conf.c,v 1.13 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_conf.c,v 1.14 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,9 +57,10 @@
*/
/* extension creation utilities */
-
-#include <stdio.h>
#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/x509.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_cpols.c b/lib/libssl/src/crypto/x509v3/v3_cpols.c
index 86e0aad265c..88552a0297f 100644
--- a/lib/libssl/src/crypto/x509v3/v3_cpols.c
+++ b/lib/libssl/src/crypto/x509v3/v3_cpols.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_cpols.c,v 1.13 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_cpols.c,v 1.14 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_crld.c b/lib/libssl/src/crypto/x509v3/v3_crld.c
index 7eccae2ecbd..0fa2ff26cdd 100644
--- a/lib/libssl/src/crypto/x509v3/v3_crld.c
+++ b/lib/libssl/src/crypto/x509v3/v3_crld.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_crld.c,v 1.10 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_crld.c,v 1.11 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_ia5.c b/lib/libssl/src/crypto/x509v3/v3_ia5.c
index a7597aab01d..07f44400a39 100644
--- a/lib/libssl/src/crypto/x509v3/v3_ia5.c
+++ b/lib/libssl/src/crypto/x509v3/v3_ia5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_ia5.c,v 1.11 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_ia5.c,v 1.12 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -56,8 +56,9 @@
*
*/
-
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/conf.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_info.c b/lib/libssl/src/crypto/x509v3/v3_info.c
index c273aad7d28..c70a22bf0eb 100644
--- a/lib/libssl/src/crypto/x509v3/v3_info.c
+++ b/lib/libssl/src/crypto/x509v3/v3_info.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_info.c,v 1.16 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_info.c,v 1.17 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_ncons.c b/lib/libssl/src/crypto/x509v3/v3_ncons.c
index 9e0cb37bc00..b44b24dbd45 100644
--- a/lib/libssl/src/crypto/x509v3/v3_ncons.c
+++ b/lib/libssl/src/crypto/x509v3/v3_ncons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_ncons.c,v 1.3 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_ncons.c,v 1.4 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
@@ -56,8 +56,9 @@
*
*/
-
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/conf.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_ocsp.c b/lib/libssl/src/crypto/x509v3/v3_ocsp.c
index f400ca14bcd..ca3fc51c770 100644
--- a/lib/libssl/src/crypto/x509v3/v3_ocsp.c
+++ b/lib/libssl/src/crypto/x509v3/v3_ocsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_ocsp.c,v 1.7 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_ocsp.c,v 1.8 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -56,9 +56,11 @@
*
*/
+#include <stdio.h>
+#include <string.h>
+
#ifndef OPENSSL_NO_OCSP
-#include <stdio.h>
#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_pci.c b/lib/libssl/src/crypto/x509v3/v3_pci.c
index a042e6e7840..34a34a6fccf 100644
--- a/lib/libssl/src/crypto/x509v3/v3_pci.c
+++ b/lib/libssl/src/crypto/x509v3/v3_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_pci.c,v 1.5 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_pci.c,v 1.6 2014/07/10 13:58:23 jsing Exp $ */
/* Contributed to the OpenSSL Project 2004
* by Richard Levitte (richard@levitte.org)
*/
@@ -35,6 +35,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/x509v3.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_pcons.c b/lib/libssl/src/crypto/x509v3/v3_pcons.c
index 7912a7f4261..84051231608 100644
--- a/lib/libssl/src/crypto/x509v3/v3_pcons.c
+++ b/lib/libssl/src/crypto/x509v3/v3_pcons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_pcons.c,v 1.3 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_pcons.c,v 1.4 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
@@ -56,8 +56,9 @@
*
*/
-
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/asn1t.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_purp.c b/lib/libssl/src/crypto/x509v3/v3_purp.c
index 67fb7baa3e2..02538335ae9 100644
--- a/lib/libssl/src/crypto/x509v3/v3_purp.c
+++ b/lib/libssl/src/crypto/x509v3/v3_purp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_purp.c,v 1.18 2014/06/28 18:14:57 logan Exp $ */
+/* $OpenBSD: v3_purp.c,v 1.19 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2001.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/x509v3.h>
#include <openssl/x509_vfy.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_skey.c b/lib/libssl/src/crypto/x509v3/v3_skey.c
index 0283730e512..ee9508f8868 100644
--- a/lib/libssl/src/crypto/x509v3/v3_skey.c
+++ b/lib/libssl/src/crypto/x509v3/v3_skey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_skey.c,v 1.8 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_skey.c,v 1.9 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -56,8 +56,9 @@
*
*/
-
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/x509v3.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_sxnet.c b/lib/libssl/src/crypto/x509v3/v3_sxnet.c
index 20db855ec0f..9688fa396cc 100644
--- a/lib/libssl/src/crypto/x509v3/v3_sxnet.c
+++ b/lib/libssl/src/crypto/x509v3/v3_sxnet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_sxnet.c,v 1.9 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_sxnet.c,v 1.10 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -57,6 +57,8 @@
*/
#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/asn1.h>
diff --git a/lib/libssl/src/crypto/x509v3/v3_utl.c b/lib/libssl/src/crypto/x509v3/v3_utl.c
index 54fe5d0cbe7..25116573bac 100644
--- a/lib/libssl/src/crypto/x509v3/v3_utl.c
+++ b/lib/libssl/src/crypto/x509v3/v3_utl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: v3_utl.c,v 1.20 2014/06/12 15:49:31 deraadt Exp $ */
+/* $OpenBSD: v3_utl.c,v 1.21 2014/07/10 13:58:23 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
@@ -57,9 +57,10 @@
*/
/* X509 v3 extension utilities */
-
-#include <stdio.h>
#include <ctype.h>
+#include <stdio.h>
+#include <string.h>
+
#include "cryptlib.h"
#include <openssl/conf.h>
#include <openssl/x509v3.h>