1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-28 22:11:16 +02:00
Files
u-boot-megous/lib/openssl/asn1/X509_PUBKEY_it.c
Ondrej Jirman ba8c26ce40 initial
2019-03-04 15:37:41 +01:00

27 lines
618 B
C
Executable File

#include "asn1.h"
#include "asn1t.h"
#include "x509v3.h"
#include "rsa.h"
static int pubkey_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it)
{
if (operation == ASN1_OP_FREE_POST)
{
X509_PUBKEY *pubkey = (X509_PUBKEY *)*pval;
EVP_PKEY_free(pubkey->pkey);
}
return 1;
}
/////////////////X509_PUBKEY_it//////////////////////////////
ASN1_SEQUENCE_cb(X509_PUBKEY, pubkey_cb) = {
ASN1_SIMPLE(X509_PUBKEY, algor, X509_ALGOR),
ASN1_SIMPLE(X509_PUBKEY, public_key, ASN1_BIT_STRING)
} ASN1_SEQUENCE_END_cb(X509_PUBKEY, X509_PUBKEY)
IMPLEMENT_ASN1_FUNCTIONS(X509_PUBKEY)