diff options
author | Tomas Mraz <tomas@openssl.org> | 2023-01-13 17:59:52 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-02-07 17:02:47 +0100 |
commit | b2dc025d149884f2e289e3180876d724171f401e (patch) | |
tree | 9eb8f7ec66465b622e24cc292a113c4c180e160a /include | |
parent | 9ce43690ceed80fee06dbc3caa454c281234b859 (diff) |
Do not create DSA keys without parameters by decoder
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/x509.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/crypto/x509.h b/include/crypto/x509.h index 1f00178e89..0c42730ee9 100644 --- a/include/crypto/x509.h +++ b/include/crypto/x509.h @@ -339,6 +339,9 @@ void ossl_X509_PUBKEY_INTERNAL_free(X509_PUBKEY *xpub); RSA *ossl_d2i_RSA_PSS_PUBKEY(RSA **a, const unsigned char **pp, long length); int ossl_i2d_RSA_PSS_PUBKEY(const RSA *a, unsigned char **pp); +# ifndef OPENSSL_NO_DSA +DSA *ossl_d2i_DSA_PUBKEY(DSA **a, const unsigned char **pp, long length); +# endif /* OPENSSL_NO_DSA */ # ifndef OPENSSL_NO_DH DH *ossl_d2i_DH_PUBKEY(DH **a, const unsigned char **pp, long length); int ossl_i2d_DH_PUBKEY(const DH *a, unsigned char **pp); |