ESP-IDF
asn1_get_next()
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (2/5)...
Files
loading (3/5)...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
asn1_get_next()
asn1_get_next() function
Syntax
Show:
Summary
Declaration
Definition
from
asn1.h:62
int
asn1_get_next
(
const
u8
*
buf
,
size_t
len
,
struct
asn1_hdr
*
hdr
)
;
Implemented in
asn1.c:171
Arguments
Argument
Declared as
buf
const
u8
*
len
size_t
hdr
struct
asn1_hdr
*
Examples
References
from
examples
Code
Location
Referrer
int
asn1_get_next
(
const
u8
*
buf
,
size_t
len
,
struct
asn1_hdr
*
hdr
)
asn1.c:171
int
asn1_get_next
(
const
u8
*
buf
,
size_t
len
,
struct
asn1_hdr
*
hdr
)
;
asn1.h:62
if
(
asn1_get_next
(
buf
,
len
,
&
hdr
)
<
0
||
hdr
.
length
==
0
||
asn1.c:339
asn1_get_oid()
if
(
asn1_get_next
(
buf
,
len
,
&
hdr
)
<
0
||
hdr
.
length
==
0
||
asn1.c:440
asn1_get_integer()
if
(
asn1_get_next
(
buf
,
len
,
hdr
)
<
0
||
!
asn1_is_sequence
(
hdr
)
)
{
asn1.c:469
asn1_get_sequence()
if
(
asn1_get_next
(
decrypted
,
decrypted_len
,
&
hdr
)
<
0
||
pkcs1.c:238
pkcs1_v15_sig_ver()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
pkcs1.c:259
pkcs1_v15_sig_ver()
(
asn1_get_next
(
next
,
da_end
-
next
,
&
hdr
)
<
0
||
pkcs1.c:285
pkcs1_v15_sig_ver()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
pkcs1.c:308
pkcs1_v15_sig_ver()
if
(
asn1_get_next
(
pos
,
enc_alg_end
-
pos
,
&
hdr
)
<
0
||
pkcs5.c:109
pkcs5_get_params_pbes2()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
pkcs5.c:118
pkcs5_get_params_pbes2()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
pkcs5.c:159
pkcs5_get_params_pbes2()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
pkcs5.c:170
pkcs5_get_params_pbes2()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
!
asn1_is_integer
(
&
hdr
)
)
{
pkcs5.c:183
pkcs5_get_params_pbes2()
if
(
asn1_get_next
(
pos
,
enc_alg_end
-
pos
,
&
hdr
)
<
0
||
pkcs5.c:213
pkcs5_get_params_pbes2()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
pkcs5.c:247
pkcs5_get_params_pbes2()
if
(
asn1_get_next
(
pos
,
enc_alg_end
-
pos
,
&
hdr
)
<
0
||
pkcs5.c:309
pkcs5_get_params()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
pkcs5.c:319
pkcs5_get_params()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
pkcs5.c:332
pkcs5_get_params()
if
(
asn1_get_next
(
buf
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
pkcs8.c:30
pkcs8_key_import()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
!
asn1_is_integer
(
&
hdr
)
)
{
pkcs8.c:39
pkcs8_key_import()
if
(
asn1_get_next
(
pos
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
pkcs8.c:66
pkcs8_key_import()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
pkcs8.c:97
pkcs8_key_import()
if
(
asn1_get_next
(
buf
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
pkcs8.c:131
pkcs8_enc_key_import()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
pkcs8.c:140
pkcs8_enc_key_import()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
pkcs8.c:151
pkcs8_enc_key_import()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
rsa.c:39
crypto_rsa_parse_integer()
if
(
asn1_get_next
(
buf
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
rsa.c:86
crypto_rsa_import_public_key()
if
(
asn1_get_next
(
buf
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
rsa.c:189
crypto_rsa_import_private_key()
if
(
asn1_get_next
(
resp
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
tlsv1_client_ocsp.c:141
tls_process_ocsp_single_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:161
tls_process_ocsp_single_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:186
tls_process_ocsp_single_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:208
tls_process_ocsp_single_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:241
tls_process_ocsp_single_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:254
tls_process_ocsp_single_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
)
tlsv1_client_ocsp.c:270
tls_process_ocsp_single_response()
if
(
asn1_get_next
(
hdr
.
payload
,
hdr
.
length
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:275
tls_process_ocsp_single_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:324
tls_process_ocsp_responses()
if
(
asn1_get_next
(
resp
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
tlsv1_client_ocsp.c:375
tls_process_basic_ocsp_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:384
tls_process_basic_ocsp_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:401
tls_process_basic_ocsp_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:425
tls_process_basic_ocsp_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:438
tls_process_basic_ocsp_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
==
0
&&
hdr
.
constructed
&&
tlsv1_client_ocsp.c:474
tls_process_basic_ocsp_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:476
tls_process_basic_ocsp_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:501
tls_process_basic_ocsp_response()
if
(
asn1_get_next
(
hdr
.
payload
,
hdr
.
length
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:515
tls_process_basic_ocsp_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:538
tls_process_basic_ocsp_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:550
tls_process_basic_ocsp_response()
if
(
asn1_get_next
(
resp
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
tlsv1_client_ocsp.c:669
tls_process_ocsp_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:678
tls_process_ocsp_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
!
hdr
.
constructed
||
tlsv1_client_ocsp.c:696
tls_process_ocsp_response()
if
(
asn1_get_next
(
hdr
.
payload
,
hdr
.
length
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:709
tls_process_ocsp_response()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_client_ocsp.c:732
tls_process_ocsp_response()
if
(
asn1_get_next
(
pos
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
tlsv1_cred.c:1088
tlsv1_set_dhparams_der()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_cred.c:1096
tlsv1_set_dhparams_der()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
tlsv1_cred.c:1113
tlsv1_set_dhparams_der()
if
(
asn1_get_next
(
buf
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
x509v3.c:195
x509_parse_algorithm_identifier()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:233
x509_parse_public_key()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:250
x509_parse_public_key()
if
(
asn1_get_next
(
buf
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
x509v3.c:305
x509_parse_name()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:320
x509_parse_name()
if
(
asn1_get_next
(
set_pos
,
set_end
-
set_pos
,
&
hdr
)
<
0
||
x509v3.c:331
x509_parse_name()
if
(
asn1_get_next
(
seq_pos
,
seq_end
-
seq_pos
,
&
hdr
)
<
0
||
x509v3.c:347
x509_parse_name()
if
(
asn1_get_next
(
buf
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
x509v3.c:709
x509_parse_validity()
if
(
asn1_get_next
(
pos
,
plen
,
&
hdr
)
<
0
||
x509v3.c:721
x509_parse_validity()
if
(
asn1_get_next
(
pos
,
plen
,
&
hdr
)
<
0
||
x509v3.c:733
x509_parse_validity()
if
(
asn1_get_next
(
pos
,
len
,
&
hdr
)
<
0
||
!
asn1_is_bitstring
(
&
hdr
)
||
x509v3.c:787
x509_parse_ext_key_usage()
if
(
asn1_get_next
(
pos
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
x509v3.c:816
x509_parse_ext_basic_constraints()
if
(
asn1_get_next
(
hdr
.
payload
,
hdr
.
length
,
&
hdr
)
<
0
)
{
x509v3.c:828
x509_parse_ext_basic_constraints()
if
(
asn1_get_next
(
pos
,
end_seq
-
pos
,
&
hdr
)
<
0
)
{
x509v3.c:844
x509_parse_ext_basic_constraints()
if
(
asn1_get_next
(
p
,
end
-
p
,
&
hdr
)
<
0
)
{
x509v3.c:1007
x509_parse_ext_alt_name()
if
(
asn1_get_next
(
pos
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
x509v3.c:1060
x509_parse_ext_subject_alt_name()
if
(
asn1_get_next
(
pos
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
x509v3.c:1084
x509_parse_ext_issuer_alt_name()
if
(
asn1_get_next
(
pos
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
x509v3.c:1167
x509_parse_ext_certificate_policies()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:1184
x509_parse_ext_certificate_policies()
if
(
asn1_get_next
(
pos
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
x509v3.c:1287
x509_parse_ext_ext_key_usage()
if
(
asn1_get_next
(
pos
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
x509v3.c:1376
x509_parse_extension()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:1389
x509_parse_extension()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:1405
x509_parse_extension()
if
(
asn1_get_next
(
pos
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
x509v3.c:1441
x509_parse_extensions()
if
(
asn1_get_next
(
buf
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
x509v3.c:1471
x509_parse_tbs_certificate()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
)
x509v3.c:1483
x509_parse_tbs_certificate()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:1488
x509_parse_tbs_certificate()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
)
x509v3.c:1517
x509_parse_tbs_certificate()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:1578
x509_parse_tbs_certificate()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:1594
x509_parse_tbs_certificate()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:1611
x509_parse_tbs_certificate()
if
(
asn1_get_next
(
pos
,
len
,
&
hdr
)
<
0
||
!
asn1_is_sequence
(
&
hdr
)
)
{
x509v3.c:1750
x509_certificate_parse()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:1786
x509_certificate_parse()
if
(
asn1_get_next
(
data
,
data_len
,
&
hdr
)
<
0
||
x509v3.c:1902
x509_check_signature()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:1921
x509_check_signature()
(
asn1_get_next
(
next
,
da_end
-
next
,
&
hdr
)
<
0
||
x509v3.c:1946
x509_check_signature()
if
(
asn1_get_next
(
pos
,
end
-
pos
,
&
hdr
)
<
0
||
x509v3.c:2033
x509_check_signature()
Call Tree
from
examples
asn1_get_next()
is called by 32 functions and calls 2 functions:
asn1_get_oid()
asn1_get_integer()
asn1_get_sequence()
pkcs1_v15_sig_ver()
pkcs5_get_params_pbes2()
pkcs5_get_params()
pkcs8_key_import()
pkcs8_enc_key_import()
crypto_rsa_parse_integer()
crypto_rsa_import_public_key()
crypto_rsa_import_private_key()
tlsv1_set_dhparams_der()
tls_process_ocsp_single_response()
tls_process_ocsp_responses()
tls_process_basic_ocsp_response()
tls_process_ocsp_response()
x509_parse_algorithm_identifier()
x509_parse_public_key()
x509_parse_name()
x509_parse_validity()
x509_parse_ext_key_usage()
x509_parse_ext_basic_constraints()
x509_parse_ext_alt_name()
x509_parse_ext_subject_alt_name()
x509_parse_ext_issuer_alt_name()
x509_parse_ext_certificate_policies()
x509_parse_ext_ext_key_usage()
x509_parse_extension()
x509_parse_extensions()
x509_parse_tbs_certificate()
x509_certificate_parse()
x509_check_signature()
All items filtered out
asn1_get_next()
asn1_print_hdr()
asn1_valid_der()
All items filtered out
Data Use
from
examples
asn1_get_next()
reads 4 variables and writes 6 variables:
asn1_hdr::identifier
asn1_hdr::class
asn1_hdr::tag
asn1_hdr::length
All items filtered out
asn1_get_next()
asn1_hdr::payload
asn1_hdr::identifier
asn1_hdr::class
asn1_hdr::constructed
asn1_hdr::tag
asn1_hdr::length
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out