openssl/providers/common
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
..
der
include/prov [EC][ASN1] Detect missing OID when serializing EC parameters and keys 2020-07-06 19:15:36 +03:00
bio_prov.c Make the naming scheme for dispatched functions more consistent 2020-06-24 22:01:22 +02:00
build.info
capabilities.c Rename <openssl/core_numbers.h> -> <openssl/core_dispatch.h> 2020-06-24 22:01:22 +02:00
nid_to_name.c
provider_ctx.c
provider_err.c [EC][ASN1] Detect missing OID when serializing EC parameters and keys 2020-07-06 19:15:36 +03:00
provider_util.c