diff options
author | jsing <> | 2015-02-10 15:29:34 +0000 |
---|---|---|
committer | jsing <> | 2015-02-10 15:29:34 +0000 |
commit | bc0dabd4e1a01c82d1011855caaf60a3cd6cab84 (patch) | |
tree | 9f2c13f7bedc8d66ebe176e93c7aa04db8707df3 /src/usr.bin/openssl/progs.h | |
parent | 9c50482953bc7e90189e0ffe451dbeb6de65ff10 (diff) | |
download | openbsd-bc0dabd4e1a01c82d1011855caaf60a3cd6cab84.tar.gz openbsd-bc0dabd4e1a01c82d1011855caaf60a3cd6cab84.tar.bz2 openbsd-bc0dabd4e1a01c82d1011855caaf60a3cd6cab84.zip |
Introduce an openssl(1) certhash command.
This is effectively a reimplementation of the functionality provided by
the previously removed c_rehash Perl script. The c_rehash script had a
number of known issues, including the fact that it needs to run openssl(1)
multiple times and that it starts by removing all symlinks before
putting them back, creating atomicity issues/race conditions, even when
nothing has changed.
certhash is self-contained and is intended to be stable - no changes
should be made unless something has actually changed. This means it can
be run regularly in a production environment without causing certificate
lookup failures.
Further testing and improvements will happen in tree.
Discussed with tedu@
Diffstat (limited to 'src/usr.bin/openssl/progs.h')
-rw-r--r-- | src/usr.bin/openssl/progs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/progs.h b/src/usr.bin/openssl/progs.h index 6f957c6f7c..e1494e1147 100644 --- a/src/usr.bin/openssl/progs.h +++ b/src/usr.bin/openssl/progs.h | |||
@@ -1,8 +1,9 @@ | |||
1 | /* $OpenBSD: progs.h,v 1.1 2014/08/26 17:47:25 jsing Exp $ */ | 1 | /* $OpenBSD: progs.h,v 1.2 2015/02/10 15:29:34 jsing Exp $ */ |
2 | /* Public domain */ | 2 | /* Public domain */ |
3 | 3 | ||
4 | extern int asn1parse_main(int argc, char *argv[]); | 4 | extern int asn1parse_main(int argc, char *argv[]); |
5 | extern int ca_main(int argc, char *argv[]); | 5 | extern int ca_main(int argc, char *argv[]); |
6 | extern int certhash_main(int argc, char *argv[]); | ||
6 | extern int ciphers_main(int argc, char *argv[]); | 7 | extern int ciphers_main(int argc, char *argv[]); |
7 | extern int cms_main(int argc, char *argv[]); | 8 | extern int cms_main(int argc, char *argv[]); |
8 | extern int crl2pkcs7_main(int argc, char *argv[]); | 9 | extern int crl2pkcs7_main(int argc, char *argv[]); |
@@ -66,6 +67,7 @@ FUNCTION functions[] = { | |||
66 | /* General functions. */ | 67 | /* General functions. */ |
67 | { FUNC_TYPE_GENERAL, "asn1parse", asn1parse_main }, | 68 | { FUNC_TYPE_GENERAL, "asn1parse", asn1parse_main }, |
68 | { FUNC_TYPE_GENERAL, "ca", ca_main }, | 69 | { FUNC_TYPE_GENERAL, "ca", ca_main }, |
70 | { FUNC_TYPE_GENERAL, "certhash", certhash_main }, | ||
69 | { FUNC_TYPE_GENERAL, "ciphers", ciphers_main }, | 71 | { FUNC_TYPE_GENERAL, "ciphers", ciphers_main }, |
70 | #ifndef OPENSSL_NO_CMS | 72 | #ifndef OPENSSL_NO_CMS |
71 | { FUNC_TYPE_GENERAL, "cms", cms_main }, | 73 | { FUNC_TYPE_GENERAL, "cms", cms_main }, |