diff options
author | op <> | 2023-05-14 07:26:25 +0000 |
---|---|---|
committer | op <> | 2023-05-14 07:26:25 +0000 |
commit | 9b81b7b93a4b90e2cc81174947bef859a308dba7 (patch) | |
tree | 7076a62616faf2e4a7160b0b027a1e46eee66e16 | |
parent | 17822816765e09b0f009bef1da2b0f3877a33f02 (diff) | |
download | openbsd-9b81b7b93a4b90e2cc81174947bef859a308dba7.tar.gz openbsd-9b81b7b93a4b90e2cc81174947bef859a308dba7.tar.bz2 openbsd-9b81b7b93a4b90e2cc81174947bef859a308dba7.zip |
add missing #include <string.h>; ok tb@
-rw-r--r-- | src/lib/libtls/tls.c | 3 | ||||
-rw-r--r-- | src/lib/libtls/tls_bio_cb.c | 3 | ||||
-rw-r--r-- | src/lib/libtls/tls_client.c | 3 | ||||
-rw-r--r-- | src/lib/libtls/tls_config.c | 3 | ||||
-rw-r--r-- | src/lib/libtls/tls_conninfo.c | 3 | ||||
-rw-r--r-- | src/lib/libtls/tls_ocsp.c | 4 | ||||
-rw-r--r-- | src/lib/libtls/tls_server.c | 4 | ||||
-rw-r--r-- | src/lib/libtls/tls_util.c | 3 |
8 files changed, 18 insertions, 8 deletions
diff --git a/src/lib/libtls/tls.c b/src/lib/libtls/tls.c index ff33ebe53e..f3e7148f0d 100644 --- a/src/lib/libtls/tls.c +++ b/src/lib/libtls/tls.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls.c,v 1.94 2022/02/08 19:13:50 tb Exp $ */ | 1 | /* $OpenBSD: tls.c,v 1.95 2023/05/14 07:26:25 op Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -21,6 +21,7 @@ | |||
21 | #include <limits.h> | 21 | #include <limits.h> |
22 | #include <pthread.h> | 22 | #include <pthread.h> |
23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
24 | #include <string.h> | ||
24 | #include <unistd.h> | 25 | #include <unistd.h> |
25 | 26 | ||
26 | #include <openssl/bio.h> | 27 | #include <openssl/bio.h> |
diff --git a/src/lib/libtls/tls_bio_cb.c b/src/lib/libtls/tls_bio_cb.c index dad9d23efb..8a1edfd5e4 100644 --- a/src/lib/libtls/tls_bio_cb.c +++ b/src/lib/libtls/tls_bio_cb.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_bio_cb.c,v 1.20 2022/01/10 23:39:48 tb Exp $ */ | 1 | /* $OpenBSD: tls_bio_cb.c,v 1.21 2023/05/14 07:26:25 op Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2016 Tobias Pape <tobias@netshed.de> | 3 | * Copyright (c) 2016 Tobias Pape <tobias@netshed.de> |
4 | * | 4 | * |
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | #include <fcntl.h> | 18 | #include <fcntl.h> |
19 | #include <stdlib.h> | 19 | #include <stdlib.h> |
20 | #include <string.h> | ||
20 | #include <unistd.h> | 21 | #include <unistd.h> |
21 | 22 | ||
22 | #include <openssl/bio.h> | 23 | #include <openssl/bio.h> |
diff --git a/src/lib/libtls/tls_client.c b/src/lib/libtls/tls_client.c index 1629697f8a..deb24ebc23 100644 --- a/src/lib/libtls/tls_client.c +++ b/src/lib/libtls/tls_client.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_client.c,v 1.48 2021/10/21 08:38:11 tb Exp $ */ | 1 | /* $OpenBSD: tls_client.c,v 1.49 2023/05/14 07:26:25 op Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -25,6 +25,7 @@ | |||
25 | #include <limits.h> | 25 | #include <limits.h> |
26 | #include <netdb.h> | 26 | #include <netdb.h> |
27 | #include <stdlib.h> | 27 | #include <stdlib.h> |
28 | #include <string.h> | ||
28 | #include <unistd.h> | 29 | #include <unistd.h> |
29 | 30 | ||
30 | #include <openssl/err.h> | 31 | #include <openssl/err.h> |
diff --git a/src/lib/libtls/tls_config.c b/src/lib/libtls/tls_config.c index 15e218b4e0..3efd0ddd57 100644 --- a/src/lib/libtls/tls_config.c +++ b/src/lib/libtls/tls_config.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_config.c,v 1.65 2022/01/25 21:51:24 eric Exp $ */ | 1 | /* $OpenBSD: tls_config.c,v 1.66 2023/05/14 07:26:25 op Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -22,6 +22,7 @@ | |||
22 | #include <fcntl.h> | 22 | #include <fcntl.h> |
23 | #include <pthread.h> | 23 | #include <pthread.h> |
24 | #include <stdlib.h> | 24 | #include <stdlib.h> |
25 | #include <string.h> | ||
25 | #include <unistd.h> | 26 | #include <unistd.h> |
26 | 27 | ||
27 | #include <tls.h> | 28 | #include <tls.h> |
diff --git a/src/lib/libtls/tls_conninfo.c b/src/lib/libtls/tls_conninfo.c index 4d9ae29e09..b2aadab083 100644 --- a/src/lib/libtls/tls_conninfo.c +++ b/src/lib/libtls/tls_conninfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_conninfo.c,v 1.22 2021/01/05 15:57:38 tb Exp $ */ | 1 | /* $OpenBSD: tls_conninfo.c,v 1.23 2023/05/14 07:26:25 op Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> |
@@ -17,6 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <stdio.h> | 19 | #include <stdio.h> |
20 | #include <string.h> | ||
20 | 21 | ||
21 | #include <openssl/x509.h> | 22 | #include <openssl/x509.h> |
22 | 23 | ||
diff --git a/src/lib/libtls/tls_ocsp.c b/src/lib/libtls/tls_ocsp.c index 83585fac05..acf6935a52 100644 --- a/src/lib/libtls/tls_ocsp.c +++ b/src/lib/libtls/tls_ocsp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_ocsp.c,v 1.22 2021/10/31 16:39:32 tb Exp $ */ | 1 | /* $OpenBSD: tls_ocsp.c,v 1.23 2023/05/14 07:26:25 op Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Marko Kreen <markokr@gmail.com> | 3 | * Copyright (c) 2015 Marko Kreen <markokr@gmail.com> |
4 | * Copyright (c) 2016 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2016 Bob Beck <beck@openbsd.org> |
@@ -21,6 +21,8 @@ | |||
21 | #include <arpa/inet.h> | 21 | #include <arpa/inet.h> |
22 | #include <netinet/in.h> | 22 | #include <netinet/in.h> |
23 | 23 | ||
24 | #include <string.h> | ||
25 | |||
24 | #include <openssl/err.h> | 26 | #include <openssl/err.h> |
25 | #include <openssl/ocsp.h> | 27 | #include <openssl/ocsp.h> |
26 | #include <openssl/x509.h> | 28 | #include <openssl/x509.h> |
diff --git a/src/lib/libtls/tls_server.c b/src/lib/libtls/tls_server.c index 72f797b860..5f93c7a035 100644 --- a/src/lib/libtls/tls_server.c +++ b/src/lib/libtls/tls_server.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_server.c,v 1.48 2022/01/19 11:10:55 inoguchi Exp $ */ | 1 | /* $OpenBSD: tls_server.c,v 1.49 2023/05/14 07:26:25 op Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -19,6 +19,8 @@ | |||
19 | 19 | ||
20 | #include <arpa/inet.h> | 20 | #include <arpa/inet.h> |
21 | 21 | ||
22 | #include <string.h> | ||
23 | |||
22 | #include <openssl/ec.h> | 24 | #include <openssl/ec.h> |
23 | #include <openssl/err.h> | 25 | #include <openssl/err.h> |
24 | #include <openssl/ssl.h> | 26 | #include <openssl/ssl.h> |
diff --git a/src/lib/libtls/tls_util.c b/src/lib/libtls/tls_util.c index d8103a506c..b276d2cfa7 100644 --- a/src/lib/libtls/tls_util.c +++ b/src/lib/libtls/tls_util.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_util.c,v 1.15 2021/08/16 13:54:38 tb Exp $ */ | 1 | /* $OpenBSD: tls_util.c,v 1.16 2023/05/14 07:26:25 op Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> | 4 | * Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> |
@@ -20,6 +20,7 @@ | |||
20 | #include <sys/stat.h> | 20 | #include <sys/stat.h> |
21 | 21 | ||
22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
23 | #include <string.h> | ||
23 | #include <unistd.h> | 24 | #include <unistd.h> |
24 | #include <fcntl.h> | 25 | #include <fcntl.h> |
25 | 26 | ||