openssl/crypto/pem
Nicola Tuveri e0137ca92b [EC][ASN1] Detect missing OID when serializing EC parameters and keys
The following built-in curves do not have an assigned OID:

- Oakley-EC2N-3
- Oakley-EC2N-4

In general we shouldn't assume that an OID is always available.

This commit detects such cases, raises an error and returns appropriate
return values so that the condition can be detected and correctly
handled by the callers, when serializing EC parameters or EC keys with
the default `ec_param_enc:named_curve`.

Fixes #12306

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12313)
2020-07-06 19:15:36 +03:00
..
build.info
pem_all.c
pem_err.c
pem_info.c
pem_lib.c [EC][ASN1] Detect missing OID when serializing EC parameters and keys 2020-07-06 19:15:36 +03:00
pem_local.h
pem_oth.c
pem_pk8.c Update copyright year 2020-06-04 14:33:57 +01:00
pem_pkey.c OSSL_STORE: Make it possible to attach an OSSL_STORE to an opened BIO 2020-05-13 18:51:14 +02:00
pem_sign.c
pem_x509.c
pem_xaux.c
pvkfmt.c Cast the unsigned char to unsigned int before shifting left 2020-05-20 17:31:43 +02:00