summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-01-22 11:16:57 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-01-22 11:16:57 +0000
commitfc155a63eeeb440c4c6c4555026846879a5b850e (patch)
tree89dec8c14033e410c231377e0b4789c302986e27
parent14df3bace7b11850ff9e2fd04cc6c1c10edde427 (diff)
Use field names in struct initialisers.
No change to generated assembly.
-rw-r--r--lib/libssl/src/crypto/x509/by_dir.c22
-rw-r--r--lib/libssl/src/crypto/x509/by_file.c22
-rw-r--r--lib/libssl/src/crypto/x509/by_mem.c22
3 files changed, 33 insertions, 33 deletions
diff --git a/lib/libssl/src/crypto/x509/by_dir.c b/lib/libssl/src/crypto/x509/by_dir.c
index 193adb12f99..3ac6f11f071 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.33 2014/09/23 20:01:11 miod Exp $ */
+/* $OpenBSD: by_dir.c,v 1.34 2015/01/22 11:16:56 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -102,16 +102,16 @@ static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name,
X509_OBJECT *ret);
X509_LOOKUP_METHOD x509_dir_lookup = {
- "Load certs from files in a directory",
- new_dir, /* new */
- free_dir, /* free */
- NULL, /* init */
- NULL, /* shutdown */
- dir_ctrl, /* ctrl */
- get_cert_by_subject, /* get_by_subject */
- NULL, /* get_by_issuer_serial */
- NULL, /* get_by_fingerprint */
- NULL, /* get_by_alias */
+ .name = "Load certs from files in a directory",
+ .new_item = new_dir,
+ .free = free_dir,
+ .init = NULL,
+ .shutdown = NULL,
+ .ctrl = dir_ctrl,
+ .get_by_subject = get_cert_by_subject,
+ .get_by_issuer_serial = NULL,
+ .get_by_fingerprint = NULL,
+ .get_by_alias = NULL,
};
X509_LOOKUP_METHOD *
diff --git a/lib/libssl/src/crypto/x509/by_file.c b/lib/libssl/src/crypto/x509/by_file.c
index 04366460bb0..111289e143f 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.16 2014/07/25 06:05:32 doug Exp $ */
+/* $OpenBSD: by_file.c,v 1.17 2015/01/22 11:16:56 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -71,16 +71,16 @@ static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,
long argl, char **ret);
X509_LOOKUP_METHOD x509_file_lookup = {
- "Load file into cache",
- NULL, /* new */
- NULL, /* free */
- NULL, /* init */
- NULL, /* shutdown */
- by_file_ctrl, /* ctrl */
- NULL, /* get_by_subject */
- NULL, /* get_by_issuer_serial */
- NULL, /* get_by_fingerprint */
- NULL, /* get_by_alias */
+ .name = "Load file into cache",
+ .new_item = NULL,
+ .free = NULL,
+ .init = NULL,
+ .shutdown = NULL,
+ .ctrl = by_file_ctrl,
+ .get_by_subject = NULL,
+ .get_by_issuer_serial = NULL,
+ .get_by_fingerprint = NULL,
+ .get_by_alias = NULL,
};
X509_LOOKUP_METHOD *
diff --git a/lib/libssl/src/crypto/x509/by_mem.c b/lib/libssl/src/crypto/x509/by_mem.c
index 6a6ae961317..c01c4d20bec 100644
--- a/lib/libssl/src/crypto/x509/by_mem.c
+++ b/lib/libssl/src/crypto/x509/by_mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: by_mem.c,v 1.1 2015/01/22 09:06:39 reyk Exp $ */
+/* $OpenBSD: by_mem.c,v 1.2 2015/01/22 11:16:56 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -71,16 +71,16 @@
static int by_mem_ctrl(X509_LOOKUP *, int, const char *, long, char **);
X509_LOOKUP_METHOD x509_mem_lookup = {
- "Load cert from memory",
- NULL, /* new */
- NULL, /* free */
- NULL, /* init */
- NULL, /* shutdown */
- by_mem_ctrl, /* ctrl */
- NULL, /* get_by_subject */
- NULL, /* get_by_issuer_serial */
- NULL, /* get_by_fingerprint */
- NULL, /* get_by_alias */
+ .name = "Load cert from memory",
+ .new_item = NULL,
+ .free = NULL,
+ .init = NULL,
+ .shutdown = NULL,
+ .ctrl = by_mem_ctrl,
+ .get_by_subject = NULL,
+ .get_by_issuer_serial = NULL,
+ .get_by_fingerprint = NULL,
+ .get_by_alias = NULL,
};
X509_LOOKUP_METHOD *