mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 04:20:17 +03:00
[asn1] Rename ASN1_OID_CURSOR to ASN1_CURSOR
There is nothing OID-specific about the ASN1_OID_CURSOR macro. Rename to allow it to be used for constructing ASN.1 cursors with arbitrary contents. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -291,10 +291,10 @@ struct asn1_builder_header {
|
||||
ASN1_OID_INITIAL ( 2, 5 ), ASN1_OID_SINGLE ( 29 ), \
|
||||
ASN1_OID_SINGLE ( 17 )
|
||||
|
||||
/** Define an ASN.1 cursor containing an OID */
|
||||
#define ASN1_OID_CURSOR( oid_value ) { \
|
||||
.data = oid_value, \
|
||||
.len = sizeof ( oid_value ), \
|
||||
/** Define an ASN.1 cursor for a static value */
|
||||
#define ASN1_CURSOR( value ) { \
|
||||
.data = value, \
|
||||
.len = sizeof ( value ), \
|
||||
}
|
||||
|
||||
/** An ASN.1 OID-identified algorithm */
|
||||
|
||||
Reference in New Issue
Block a user