summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorreyk <>2015-02-05 01:33:22 +0000
committerreyk <>2015-02-05 01:33:22 +0000
commit2742a3c32118e7cfbf30b216747dd3a0a1954251 (patch)
tree376c2f5ea49eefabc971e492dcd7cdf7623d2882 /src
parent5dba0e506c763670b99dd2bb7568daa8713f4e2d (diff)
downloadopenbsd-2742a3c32118e7cfbf30b216747dd3a0a1954251.tar.gz
openbsd-2742a3c32118e7cfbf30b216747dd3a0a1954251.tar.bz2
openbsd-2742a3c32118e7cfbf30b216747dd3a0a1954251.zip
Declare the x509_(mem|file|dir)_lookup symbols as static because they
shouldn't be used directly. They aren't part of the API; each module (file, dir, mem) provides an actual function to export the now-static object. OK miod@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/x509/by_dir.c4
-rw-r--r--src/lib/libcrypto/x509/by_file.c4
-rw-r--r--src/lib/libcrypto/x509/by_mem.c4
-rw-r--r--src/lib/libssl/src/crypto/x509/by_dir.c4
-rw-r--r--src/lib/libssl/src/crypto/x509/by_file.c4
-rw-r--r--src/lib/libssl/src/crypto/x509/by_mem.c4
6 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/libcrypto/x509/by_dir.c b/src/lib/libcrypto/x509/by_dir.c
index 3ac6f11f07..46003cb320 100644
--- a/src/lib/libcrypto/x509/by_dir.c
+++ b/src/lib/libcrypto/x509/by_dir.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: by_dir.c,v 1.34 2015/01/22 11:16:56 jsing Exp $ */ 1/* $OpenBSD: by_dir.c,v 1.35 2015/02/05 01:33:22 reyk Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -101,7 +101,7 @@ static int add_cert_dir(BY_DIR *ctx, const char *dir, int type);
101static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, 101static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name,
102 X509_OBJECT *ret); 102 X509_OBJECT *ret);
103 103
104X509_LOOKUP_METHOD x509_dir_lookup = { 104static X509_LOOKUP_METHOD x509_dir_lookup = {
105 .name = "Load certs from files in a directory", 105 .name = "Load certs from files in a directory",
106 .new_item = new_dir, 106 .new_item = new_dir,
107 .free = free_dir, 107 .free = free_dir,
diff --git a/src/lib/libcrypto/x509/by_file.c b/src/lib/libcrypto/x509/by_file.c
index 111289e143..91a8e781b2 100644
--- a/src/lib/libcrypto/x509/by_file.c
+++ b/src/lib/libcrypto/x509/by_file.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: by_file.c,v 1.17 2015/01/22 11:16:56 jsing Exp $ */ 1/* $OpenBSD: by_file.c,v 1.18 2015/02/05 01:33:22 reyk Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -70,7 +70,7 @@
70static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc, 70static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,
71 long argl, char **ret); 71 long argl, char **ret);
72 72
73X509_LOOKUP_METHOD x509_file_lookup = { 73static X509_LOOKUP_METHOD x509_file_lookup = {
74 .name = "Load file into cache", 74 .name = "Load file into cache",
75 .new_item = NULL, 75 .new_item = NULL,
76 .free = NULL, 76 .free = NULL,
diff --git a/src/lib/libcrypto/x509/by_mem.c b/src/lib/libcrypto/x509/by_mem.c
index c01c4d20be..ecab813406 100644
--- a/src/lib/libcrypto/x509/by_mem.c
+++ b/src/lib/libcrypto/x509/by_mem.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: by_mem.c,v 1.2 2015/01/22 11:16:56 jsing Exp $ */ 1/* $OpenBSD: by_mem.c,v 1.3 2015/02/05 01:33:22 reyk Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -70,7 +70,7 @@
70 70
71static int by_mem_ctrl(X509_LOOKUP *, int, const char *, long, char **); 71static int by_mem_ctrl(X509_LOOKUP *, int, const char *, long, char **);
72 72
73X509_LOOKUP_METHOD x509_mem_lookup = { 73static X509_LOOKUP_METHOD x509_mem_lookup = {
74 .name = "Load cert from memory", 74 .name = "Load cert from memory",
75 .new_item = NULL, 75 .new_item = NULL,
76 .free = NULL, 76 .free = NULL,
diff --git a/src/lib/libssl/src/crypto/x509/by_dir.c b/src/lib/libssl/src/crypto/x509/by_dir.c
index 3ac6f11f07..46003cb320 100644
--- a/src/lib/libssl/src/crypto/x509/by_dir.c
+++ b/src/lib/libssl/src/crypto/x509/by_dir.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: by_dir.c,v 1.34 2015/01/22 11:16:56 jsing Exp $ */ 1/* $OpenBSD: by_dir.c,v 1.35 2015/02/05 01:33:22 reyk Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -101,7 +101,7 @@ static int add_cert_dir(BY_DIR *ctx, const char *dir, int type);
101static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, 101static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name,
102 X509_OBJECT *ret); 102 X509_OBJECT *ret);
103 103
104X509_LOOKUP_METHOD x509_dir_lookup = { 104static X509_LOOKUP_METHOD x509_dir_lookup = {
105 .name = "Load certs from files in a directory", 105 .name = "Load certs from files in a directory",
106 .new_item = new_dir, 106 .new_item = new_dir,
107 .free = free_dir, 107 .free = free_dir,
diff --git a/src/lib/libssl/src/crypto/x509/by_file.c b/src/lib/libssl/src/crypto/x509/by_file.c
index 111289e143..91a8e781b2 100644
--- a/src/lib/libssl/src/crypto/x509/by_file.c
+++ b/src/lib/libssl/src/crypto/x509/by_file.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: by_file.c,v 1.17 2015/01/22 11:16:56 jsing Exp $ */ 1/* $OpenBSD: by_file.c,v 1.18 2015/02/05 01:33:22 reyk Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -70,7 +70,7 @@
70static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc, 70static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,
71 long argl, char **ret); 71 long argl, char **ret);
72 72
73X509_LOOKUP_METHOD x509_file_lookup = { 73static X509_LOOKUP_METHOD x509_file_lookup = {
74 .name = "Load file into cache", 74 .name = "Load file into cache",
75 .new_item = NULL, 75 .new_item = NULL,
76 .free = NULL, 76 .free = NULL,
diff --git a/src/lib/libssl/src/crypto/x509/by_mem.c b/src/lib/libssl/src/crypto/x509/by_mem.c
index c01c4d20be..ecab813406 100644
--- a/src/lib/libssl/src/crypto/x509/by_mem.c
+++ b/src/lib/libssl/src/crypto/x509/by_mem.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: by_mem.c,v 1.2 2015/01/22 11:16:56 jsing Exp $ */ 1/* $OpenBSD: by_mem.c,v 1.3 2015/02/05 01:33:22 reyk Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -70,7 +70,7 @@
70 70
71static int by_mem_ctrl(X509_LOOKUP *, int, const char *, long, char **); 71static int by_mem_ctrl(X509_LOOKUP *, int, const char *, long, char **);
72 72
73X509_LOOKUP_METHOD x509_mem_lookup = { 73static X509_LOOKUP_METHOD x509_mem_lookup = {
74 .name = "Load cert from memory", 74 .name = "Load cert from memory",
75 .new_item = NULL, 75 .new_item = NULL,
76 .free = NULL, 76 .free = NULL,