mirror of
https://github.com/ipxe/ipxe
synced 2026-01-21 18:30:56 +03:00
[crypto] Fix identification of non-wrapped elliptic curve identifiers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -667,8 +667,8 @@ int asn1_curve_algorithm ( const struct asn1_cursor *cursor,
|
||||
*
|
||||
* - a standalone object identifier for the curve
|
||||
*/
|
||||
if ( wrapper && asn1_check_algorithm ( cursor, wrapper,
|
||||
&curve ) != 0 ) {
|
||||
if ( ( wrapper == NULL ) ||
|
||||
( asn1_check_algorithm ( cursor, wrapper, &curve ) != 0 ) ) {
|
||||
memcpy ( &curve, cursor, sizeof ( curve ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user