diff options
| author | Michael Brown | 2017-06-13 13:12:11 +0200 |
|---|---|---|
| committer | Michael Brown | 2017-06-20 10:49:00 +0200 |
| commit | b506528c1e4ce70dc24da87c0f7cd16ddac60701 (patch) | |
| tree | fc03fd8c44ccb86c8d1775a0a23bf2864ba71711 /src/usr | |
| parent | [crypto] Expose asn1_grow() (diff) | |
| download | ipxe-b506528c1e4ce70dc24da87c0f7cd16ddac60701.tar.gz ipxe-b506528c1e4ce70dc24da87c0f7cd16ddac60701.tar.xz ipxe-b506528c1e4ce70dc24da87c0f7cd16ddac60701.zip | |
[crypto] Provide asn1_built() to construct a cursor from a builder
Our ASN.1 parsing code uses a struct asn1_cursor, while the object
construction code uses a struct asn1_builder. These structures are
identical apart from the const modifier applied to the data pointer in
struct asn1_cursor.
Provide asn1_built() to safely typecast a struct asn1_builder to a
struct asn1_cursor, allowing constructed objects to be passed to
functions expecting a struct asn1_cursor.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/usr')
0 files changed, 0 insertions, 0 deletions
