asn1: Add function to generate an ASN.1 integer from an uint64_t
This commit is contained in:
@@ -180,6 +180,14 @@ bool asn1_parse_simple_object(chunk_t *object, asn1_t type, u_int level0,
|
||||
*/
|
||||
uint64_t asn1_parse_integer_uint64(chunk_t blob);
|
||||
|
||||
/**
|
||||
* Converts an uint64_t to an ASN.1 INTEGER object.
|
||||
*
|
||||
* @param val integer to convert
|
||||
* @return body of an ASN.1 coded integer object
|
||||
*/
|
||||
chunk_t asn1_integer_from_uint64(uint64_t val);
|
||||
|
||||
/**
|
||||
* Print the value of an ASN.1 simple object
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user