libopensc: export 'sc_asn1_encode_object_id'
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4142 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
ed8e498bb8
commit
f75f539a6f
|
@ -638,7 +638,7 @@ int sc_asn1_decode_object_id(const u8 * inbuf, size_t inlen,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int sc_asn1_encode_object_id(u8 **buf, size_t *buflen,
|
||||
int sc_asn1_encode_object_id(u8 **buf, size_t *buflen,
|
||||
const struct sc_object_id *id)
|
||||
{
|
||||
u8 temp[SC_MAX_OBJECT_ID_OCTETS*5], *p = temp;
|
||||
|
|
|
@ -99,6 +99,8 @@ int sc_asn1_decode_bit_string_ni(const u8 * inbuf, size_t inlen,
|
|||
int sc_asn1_decode_integer(const u8 * inbuf, size_t inlen, int *out);
|
||||
int sc_asn1_decode_object_id(const u8 * inbuf, size_t inlen,
|
||||
struct sc_object_id *id);
|
||||
int sc_asn1_encode_object_id(u8 **buf, size_t *buflen,
|
||||
const struct sc_object_id *id);
|
||||
|
||||
/* algorithm encoding/decoding */
|
||||
int sc_asn1_decode_algorithm_id(struct sc_context *,
|
||||
|
|
|
@ -42,6 +42,7 @@ sc_asn1_decode_choice
|
|||
sc_asn1_decode_integer
|
||||
sc_asn1_decode_object_id
|
||||
sc_asn1_encode
|
||||
sc_asn1_encode_object_id
|
||||
sc_asn1_encode_algorithm_id
|
||||
sc_asn1_find_tag
|
||||
sc_asn1_print_tags
|
||||
|
|
|
@ -1009,7 +1009,8 @@ sc_pkcs15emu_oberthur_init(struct sc_pkcs15_card * p15card)
|
|||
&oberthur_infos[ii].content, &oberthur_infos[ii].len, 1);
|
||||
SC_TEST_RET(ctx, SC_LOG_DEBUG_NORMAL, rv, "Oberthur init failed: read oberthur file error");
|
||||
|
||||
sc_debug(ctx, SC_LOG_DEBUG_NORMAL, "Oberthur init: parse %s file, content length %i", oberthur_infos[ii].name, oberthur_infos[ii].len);
|
||||
sc_debug(ctx, SC_LOG_DEBUG_NORMAL, "Oberthur init: parse %s file, content length %i",
|
||||
oberthur_infos[ii].name, oberthur_infos[ii].len);
|
||||
rv = oberthur_infos[ii].parser(p15card, oberthur_infos[ii].content, oberthur_infos[ii].len,
|
||||
oberthur_infos[ii].postpone_allowed);
|
||||
SC_TEST_RET(ctx, SC_LOG_DEBUG_NORMAL, rv, "Oberthur init failed: parse error");
|
||||
|
|
Loading…
Reference in New Issue