diff options
| author | tb <> | 2024-08-28 07:15:04 +0000 |
|---|---|---|
| committer | tb <> | 2024-08-28 07:15:04 +0000 |
| commit | 075c048b99cefdce1245c13c4aa449b28ce8366c (patch) | |
| tree | bb2a05a5261bd27ee87b1f4c8d85ebba6042d17d /src/lib/libcrypto/Makefile | |
| parent | a03c40153c8f8e484e8b98ea5a52b87116f9bf5a (diff) | |
| download | openbsd-075c048b99cefdce1245c13c4aa449b28ce8366c.tar.gz openbsd-075c048b99cefdce1245c13c4aa449b28ce8366c.tar.bz2 openbsd-075c048b99cefdce1245c13c4aa449b28ce8366c.zip | |
Implement X509_get_signature_info()
This is a slightly strange combination of OBJ_find_sigid_algs() and the
security level API necessary because OBJ_find_sigid_algs() on its own
isn't smart enough for the special needs of RSA-PSS and EdDSA.
The API extracts the hash's NID and the pubkey's NID from the certificate's
signatureAlgorithm and invokes special handlers for RSA-PSS and EdDSA
for retrieving the corresponding information. This isn't entirely free
for RSA-PSS, but for now we don't cache this information.
The security bits calculation is a bit hand-wavy, but that's something
that comes along with this sort of numerology.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/Makefile')
| -rw-r--r-- | src/lib/libcrypto/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index 30c63be8e4..b4407d566c 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.202 2024/08/10 06:41:49 tb Exp $ | 1 | # $OpenBSD: Makefile,v 1.203 2024/08/28 07:15:04 tb Exp $ |
| 2 | 2 | ||
| 3 | LIB= crypto | 3 | LIB= crypto |
| 4 | LIBREBUILD=y | 4 | LIBREBUILD=y |
| @@ -589,6 +589,7 @@ SRCS+= x509_purp.c | |||
| 589 | SRCS+= x509_r2x.c | 589 | SRCS+= x509_r2x.c |
| 590 | SRCS+= x509_req.c | 590 | SRCS+= x509_req.c |
| 591 | SRCS+= x509_set.c | 591 | SRCS+= x509_set.c |
| 592 | SRCS+= x509_siginfo.c | ||
| 592 | SRCS+= x509_skey.c | 593 | SRCS+= x509_skey.c |
| 593 | SRCS+= x509_trs.c | 594 | SRCS+= x509_trs.c |
| 594 | SRCS+= x509_txt.c | 595 | SRCS+= x509_txt.c |
