Commit Graph

31 Commits

Author SHA1 Message Date
Michael Tokarev
c80c04b235 spelling fixes (underun prefered relase encyption confunder)
[abartlet@samba.org: From Samba debian package at
 https://salsa.debian.org/samba-team/samba/-/blob/master/debian/patches/heimdal-spelling.patch?ref_type=heads]

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2024-06-16 23:28:43 -04:00
Joseph Sutton
61bf5009a0 hx509: Fix spelling of error messages
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
2023-11-28 21:34:35 -05:00
Nicolas Williams
a7a1d798c3 hx509: keep track of authorized CSR features
This commit adds a few functions for marking KU, EKUs, and SANs as
authorized, and for getting a count of unsupported certificate
extensions requested, and a count of authorized KU/EKUs/SANs.

The intent is to make it easier to build CSR authorization and CA code
that is robust in the face of future support for certificate extensions
and SAN types not currently supported.  An application could parse a
CSR, iterate all KU/EKUs/SANs, check a subject's authorization to them,
mark them authorized where authorized, then check if there are any
remaining unauthorized extensions or unsupported extensions requested.

Ultimately, if a CSR's KU/EKUs/SANs are all authorized, then they can
all be copied to a TBS, and a certificate can be issued.
2019-12-04 21:34:37 -06:00
HenryJacques
5cf302def7 Add new error codes related to PIN
Not all error codes have been added, only the most common ones.
2015-07-20 10:07:08 +02:00
Jelmer Vernooij
c5e8e049cb Fix some typos. 2014-04-23 03:05:23 +02:00
Love Hornquist Astrand
48ad3e1e65 add import/export type for private keys 2010-10-03 16:32:01 -07:00
Love Hörnquist Åstrand
6017ed211c make error unique
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24663 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:17:11 +00:00
Love Hörnquist Åstrand
e3f707ea2c add ALGORITHM_BEST_BEFORE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24261 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-11 21:45:27 +00:00
Love Hörnquist Åstrand
ef96bf1769 drop NO_STORE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22329 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-15 05:13:14 +00:00
Love Hörnquist Åstrand
4becc599a1 add NO_STORE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22328 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-15 05:00:33 +00:00
Love Hörnquist Åstrand
0df9285b48 Make CERT_REVOKED error OCSP/CRL agnostic.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21799 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-03 10:10:45 +00:00
Love Hörnquist Åstrand
85d84dd15e New error code, CERT_NOT_IN_OCSP
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20807 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 03:11:20 +00:00
Love Hörnquist Åstrand
93abfd3634 add new error, PARSING_NAME_FAILED
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19598 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-30 23:05:39 +00:00
Love Hörnquist Åstrand
184d8c9f29 fix errorstring for PROXY_CERT_NAME_WRONG
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19289 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:46:58 +00:00
Love Hörnquist Åstrand
b80776d43c add more pkcs11 errors
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18875 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 19:56:02 +00:00
Love Hörnquist Åstrand
b5eb125380 more error-codes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18871 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 14:38:08 +00:00
Love Hörnquist Åstrand
43c1cc11e7 add HX509_PARSING_KEY_FAILED
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18862 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 13:45:03 +00:00
Love Hörnquist Åstrand
c0a1b50548 add HX509_LOCAL_ATTRIBUTE_MISSING
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18855 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-24 12:38:46 +00:00
Love Hörnquist Åstrand
986fe523a1 Add new pkcs11 related errors in a new section: keystore related error.
Patched based on code from Douglas Engert.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18347 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-08 13:39:27 +00:00
Love Hörnquist Åstrand
7094fb5da1 Add some more errors
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17400 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-01 15:25:15 +00:00
Love Hörnquist Åstrand
5a305af6a1 Add name malformated error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-26 20:09:02 +00:00
Love Hörnquist Åstrand
ce731322d7 Add another proxy certificate error.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17266 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-26 15:45:48 +00:00
Love Hörnquist Åstrand
d82349fba1 Add proxy certificate errors.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17259 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-26 14:41:14 +00:00
Love Hörnquist Åstrand
8e186125fa Comments and renamed generic CRL related errors
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16893 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-31 22:23:10 +00:00
Love Hörnquist Åstrand
72e10b58e9 Add new error code SIGNATURE_WITHOUT_SIGNER.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16835 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-27 21:33:19 +00:00
Love Hörnquist Åstrand
7b1d6f8d43 Add HX509_CRL_UNKNOWN_EXTENSION.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16624 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-19 20:02:16 +00:00
Love Hörnquist Åstrand
09436f69c1 Add CRL errors.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16614 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-19 18:15:03 +00:00
Love Hörnquist Åstrand
dc33020444 add UNKNOWN_LOCK_COMMAND and CRYPTO_NO_PROMPTER
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16019 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-03 20:49:32 +00:00
Love Hörnquist Åstrand
a7c5af0827 add CERT_NOT_FOUND
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15797 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-27 20:30:12 +00:00
Love Hörnquist Åstrand
54056b3882 add KeyUsage error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15728 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-25 11:45:33 +00:00
Love Hörnquist Åstrand
0a70228c08 Initial revision
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15716 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-24 16:59:14 +00:00