mirror of
https://github.com/ipxe/ipxe
synced 2026-05-16 15:00:48 +03:00
[crypto] Remove userptr_t from ASN.1 parsers
Simplify the ASN.1 code by assuming that all objects are fully accessible via pointer dereferences. This allows the concept of "additional data beyond the end of the cursor" to be removed, and simplifies parsing of all ASN.1 image formats. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1476,7 +1476,7 @@ static int ipair_rx_pubkey ( struct ipair *ipair, char *msg ) {
|
||||
}
|
||||
|
||||
/* Decode inner layer of Base64 */
|
||||
next = pem_asn1 ( virt_to_user ( decoded ), len, 0, &key );
|
||||
next = pem_asn1 ( decoded, len, 0, &key );
|
||||
if ( next < 0 ) {
|
||||
rc = next;
|
||||
DBGC ( ipair, "IPAIR %p invalid inner public key:\n%s\n",
|
||||
|
||||
Reference in New Issue
Block a user