aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/asn1.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2020-12-08 12:30:57 +0000
committerMichael Brown <mcb30@ipxe.org>2020-12-08 12:38:45 +0000
commite4b6328c84cf3dcbb4af9ba42b2e3cbbb2cfbfee (patch)
tree62272ccce436c733685c2e76612190a54a89c88c /src/include/ipxe/asn1.h
parente33f5210813d704477eb16b45fbbaec143d8da95 (diff)
downloadipxe-e4b6328c84cf3dcbb4af9ba42b2e3cbbb2cfbfee.tar.gz
[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>
Diffstat (limited to 'src/include/ipxe/asn1.h')
-rw-r--r--src/include/ipxe/asn1.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/ipxe/asn1.h b/src/include/ipxe/asn1.h
index 7b0aacb5d..5b1af02d4 100644
--- a/src/include/ipxe/asn1.h
+++ b/src/include/ipxe/asn1.h
@@ -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 */