mirror of
https://github.com/ipxe/ipxe
synced 2026-01-21 09:57:23 +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
|
* - a standalone object identifier for the curve
|
||||||
*/
|
*/
|
||||||
if ( wrapper && asn1_check_algorithm ( cursor, wrapper,
|
if ( ( wrapper == NULL ) ||
|
||||||
&curve ) != 0 ) {
|
( asn1_check_algorithm ( cursor, wrapper, &curve ) != 0 ) ) {
|
||||||
memcpy ( &curve, cursor, sizeof ( curve ) );
|
memcpy ( &curve, cursor, sizeof ( curve ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user