Home
last modified time | relevance | path

Searched refs:csr (Results 1 – 6 of 6) sorted by relevance

/net-tools-latest/mbedtls-2.4.0/library/
Dx509_csr.c94 int mbedtls_x509_csr_parse_der( mbedtls_x509_csr *csr, in mbedtls_x509_csr_parse_der() argument
107 if( csr == NULL || buf == NULL || buflen == 0 ) in mbedtls_x509_csr_parse_der()
110 mbedtls_x509_csr_init( csr ); in mbedtls_x509_csr_parse_der()
122 csr->raw.p = p; in mbedtls_x509_csr_parse_der()
123 csr->raw.len = len; in mbedtls_x509_csr_parse_der()
136 mbedtls_x509_csr_free( csr ); in mbedtls_x509_csr_parse_der()
142 mbedtls_x509_csr_free( csr ); in mbedtls_x509_csr_parse_der()
150 csr->cri.p = p; in mbedtls_x509_csr_parse_der()
155 mbedtls_x509_csr_free( csr ); in mbedtls_x509_csr_parse_der()
160 csr->cri.len = end - csr->cri.p; in mbedtls_x509_csr_parse_der()
[all …]
/net-tools-latest/mbedtls-2.4.0/programs/x509/
Dreq_app.c72 mbedtls_x509_csr csr; in main() local
79 mbedtls_x509_csr_init( &csr ); in main()
109 ret = mbedtls_x509_csr_parse_file( &csr, opt.filename ); in main()
114 mbedtls_x509_csr_free( &csr ); in main()
124 ret = mbedtls_x509_csr_info( (char *) buf, sizeof( buf ) - 1, " ", &csr ); in main()
128 mbedtls_x509_csr_free( &csr ); in main()
135 mbedtls_x509_csr_free( &csr ); in main()
Dcert_write.c198 mbedtls_x509_csr csr; in main() local
216 mbedtls_x509_csr_init( &csr ); in main()
441 if( ( ret = mbedtls_x509_csr_parse_file( &csr, opt.request_file ) ) != 0 ) in main()
449 &csr.subject ); in main()
458 subject_key = &csr.pk; in main()
/net-tools-latest/mbedtls-2.4.0/include/mbedtls/
Dx509_csr.h94 int mbedtls_x509_csr_parse_der( mbedtls_x509_csr *csr,
109 int mbedtls_x509_csr_parse( mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen );
122 int mbedtls_x509_csr_parse_file( mbedtls_x509_csr *csr, const char *path );
138 const mbedtls_x509_csr *csr );
145 void mbedtls_x509_csr_init( mbedtls_x509_csr *csr );
152 void mbedtls_x509_csr_free( mbedtls_x509_csr *csr );
/net-tools-latest/mbedtls-2.4.0/tests/suites/
Dtest_suite_x509parse.function169 mbedtls_x509_csr csr;
173 mbedtls_x509_csr_init( &csr );
176 TEST_ASSERT( mbedtls_x509_csr_parse_file( &csr, csr_file ) == 0 );
177 res = mbedtls_x509_csr_info( buf, 2000, "", &csr );
185 mbedtls_x509_csr_free( &csr );
426 mbedtls_x509_csr csr;
432 mbedtls_x509_csr_init( &csr );
436 my_ret = mbedtls_x509_csr_parse_der( &csr, csr_der, csr_der_len );
441 size_t my_out_len = mbedtls_x509_csr_info( my_out, sizeof( my_out ), "", &csr );
447 mbedtls_x509_csr_free( &csr );
/net-tools-latest/
DREADME.md192 $ openssl req -new -key client_privkey.pem -out client.csr -subj "/CN=exampleClient"
193 $ openssl x509 -req -CA ca.crt -CAkey ca_privkey.pem -days 36500 -in client.csr -CAcreateserial -ou…
200 $ openssl req -new -key server_privkey.pem -out server.csr -subj "/CN=localhost"
201 $ openssl x509 -req -CA ca.crt -CAkey ca_privkey.pem -days 36500 -in server.csr -CAcreateserial -ou…