Move internal only ASN.1 functions to asn1_locl.h
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
e20b57270d
commit
c1ee50aac2
@ -104,3 +104,26 @@ struct x509_crl_method_st {
|
|||||||
ASN1_INTEGER *ser, X509_NAME *issuer);
|
ASN1_INTEGER *ser, X509_NAME *issuer);
|
||||||
int (*crl_verify) (X509_CRL *crl, EVP_PKEY *pk);
|
int (*crl_verify) (X509_CRL *crl, EVP_PKEY *pk);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
int asn1_ex_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype,
|
||||||
|
const ASN1_ITEM *it);
|
||||||
|
int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
|
||||||
|
int utype, char *free_cont, const ASN1_ITEM *it);
|
||||||
|
|
||||||
|
int asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it);
|
||||||
|
int asn1_set_choice_selector(ASN1_VALUE **pval, int value,
|
||||||
|
const ASN1_ITEM *it);
|
||||||
|
|
||||||
|
ASN1_VALUE **asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
|
||||||
|
|
||||||
|
const ASN1_TEMPLATE *asn1_do_adb(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt,
|
||||||
|
int nullerr);
|
||||||
|
|
||||||
|
int asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it);
|
||||||
|
|
||||||
|
void asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it);
|
||||||
|
void asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
|
||||||
|
int asn1_enc_restore(int *len, unsigned char **out, ASN1_VALUE **pval,
|
||||||
|
const ASN1_ITEM *it);
|
||||||
|
int asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen,
|
||||||
|
const ASN1_ITEM *it);
|
||||||
|
@ -910,29 +910,6 @@ int ASN1_template_i2d(ASN1_VALUE **pval, unsigned char **out,
|
|||||||
const ASN1_TEMPLATE *tt);
|
const ASN1_TEMPLATE *tt);
|
||||||
void ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
|
void ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
|
||||||
|
|
||||||
int asn1_ex_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype,
|
|
||||||
const ASN1_ITEM *it);
|
|
||||||
int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
|
|
||||||
int utype, char *free_cont, const ASN1_ITEM *it);
|
|
||||||
|
|
||||||
int asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it);
|
|
||||||
int asn1_set_choice_selector(ASN1_VALUE **pval, int value,
|
|
||||||
const ASN1_ITEM *it);
|
|
||||||
|
|
||||||
ASN1_VALUE **asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt);
|
|
||||||
|
|
||||||
const ASN1_TEMPLATE *asn1_do_adb(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt,
|
|
||||||
int nullerr);
|
|
||||||
|
|
||||||
int asn1_do_lock(ASN1_VALUE **pval, int op, const ASN1_ITEM *it);
|
|
||||||
|
|
||||||
void asn1_enc_init(ASN1_VALUE **pval, const ASN1_ITEM *it);
|
|
||||||
void asn1_enc_free(ASN1_VALUE **pval, const ASN1_ITEM *it);
|
|
||||||
int asn1_enc_restore(int *len, unsigned char **out, ASN1_VALUE **pval,
|
|
||||||
const ASN1_ITEM *it);
|
|
||||||
int asn1_enc_save(ASN1_VALUE **pval, const unsigned char *in, int inlen,
|
|
||||||
const ASN1_ITEM *it);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -64,6 +64,7 @@
|
|||||||
#include <openssl/objects.h>
|
#include <openssl/objects.h>
|
||||||
#include <openssl/buffer.h>
|
#include <openssl/buffer.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
|
#include "asn1_locl.h"
|
||||||
|
|
||||||
static int asn1_check_eoc(const unsigned char **in, long len);
|
static int asn1_check_eoc(const unsigned char **in, long len);
|
||||||
static int asn1_find_end(const unsigned char **in, long len, char inf);
|
static int asn1_find_end(const unsigned char **in, long len, char inf);
|
||||||
|
@ -64,6 +64,7 @@
|
|||||||
#include <openssl/asn1t.h>
|
#include <openssl/asn1t.h>
|
||||||
#include <openssl/objects.h>
|
#include <openssl/objects.h>
|
||||||
#include "internal/asn1_int.h"
|
#include "internal/asn1_int.h"
|
||||||
|
#include "asn1_locl.h"
|
||||||
|
|
||||||
static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out,
|
static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out,
|
||||||
const ASN1_ITEM *it, int tag, int aclass);
|
const ASN1_ITEM *it, int tag, int aclass);
|
||||||
|
@ -61,6 +61,7 @@
|
|||||||
#include <openssl/asn1.h>
|
#include <openssl/asn1.h>
|
||||||
#include <openssl/asn1t.h>
|
#include <openssl/asn1t.h>
|
||||||
#include <openssl/objects.h>
|
#include <openssl/objects.h>
|
||||||
|
#include "asn1_locl.h"
|
||||||
|
|
||||||
static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it,
|
static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it,
|
||||||
int combine);
|
int combine);
|
||||||
|
@ -63,6 +63,7 @@
|
|||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/asn1t.h>
|
#include <openssl/asn1t.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "asn1_locl.h"
|
||||||
|
|
||||||
static int asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it,
|
static int asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it,
|
||||||
int combine);
|
int combine);
|
||||||
|
@ -66,6 +66,7 @@
|
|||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/x509v3.h>
|
#include <openssl/x509v3.h>
|
||||||
#include "internal/asn1_int.h"
|
#include "internal/asn1_int.h"
|
||||||
|
#include "asn1_locl.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Print routines.
|
* Print routines.
|
||||||
|
@ -63,6 +63,7 @@
|
|||||||
#include <openssl/asn1t.h>
|
#include <openssl/asn1t.h>
|
||||||
#include <openssl/objects.h>
|
#include <openssl/objects.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
|
#include "asn1_locl.h"
|
||||||
|
|
||||||
/* Utility functions for manipulating fields and offsets */
|
/* Utility functions for manipulating fields and offsets */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user