Lines Matching refs:opt
103 } opt; variable
163 opt.filename = DFL_FILENAME; in main()
164 opt.debug_level = DFL_DEBUG_LEVEL; in main()
165 opt.output_file = DFL_OUTPUT_FILENAME; in main()
166 opt.subject_name = DFL_SUBJECT_NAME; in main()
167 opt.key_usage = DFL_KEY_USAGE; in main()
168 opt.ns_cert_type = DFL_NS_CERT_TYPE; in main()
179 opt.filename = q; in main()
181 opt.output_file = q; in main()
184 opt.debug_level = atoi( q ); in main()
185 if( opt.debug_level < 0 || opt.debug_level > 65535 ) in main()
190 opt.subject_name = q; in main()
200 opt.key_usage |= MBEDTLS_X509_KU_DIGITAL_SIGNATURE; in main()
202 opt.key_usage |= MBEDTLS_X509_KU_NON_REPUDIATION; in main()
204 opt.key_usage |= MBEDTLS_X509_KU_KEY_ENCIPHERMENT; in main()
206 opt.key_usage |= MBEDTLS_X509_KU_DATA_ENCIPHERMENT; in main()
208 opt.key_usage |= MBEDTLS_X509_KU_KEY_AGREEMENT; in main()
210 opt.key_usage |= MBEDTLS_X509_KU_KEY_CERT_SIGN; in main()
212 opt.key_usage |= MBEDTLS_X509_KU_CRL_SIGN; in main()
227 opt.ns_cert_type |= MBEDTLS_X509_NS_CERT_TYPE_SSL_CLIENT; in main()
229 opt.ns_cert_type |= MBEDTLS_X509_NS_CERT_TYPE_SSL_SERVER; in main()
231 opt.ns_cert_type |= MBEDTLS_X509_NS_CERT_TYPE_EMAIL; in main()
233 opt.ns_cert_type |= MBEDTLS_X509_NS_CERT_TYPE_OBJECT_SIGNING; in main()
235 opt.ns_cert_type |= MBEDTLS_X509_NS_CERT_TYPE_SSL_CA; in main()
237 opt.ns_cert_type |= MBEDTLS_X509_NS_CERT_TYPE_EMAIL_CA; in main()
239 opt.ns_cert_type |= MBEDTLS_X509_NS_CERT_TYPE_OBJECT_SIGNING_CA; in main()
250 if( opt.key_usage ) in main()
251 mbedtls_x509write_csr_set_key_usage( &req, opt.key_usage ); in main()
253 if( opt.ns_cert_type ) in main()
254 mbedtls_x509write_csr_set_ns_cert_type( &req, opt.ns_cert_type ); in main()
279 if( ( ret = mbedtls_x509write_csr_set_subject_name( &req, opt.subject_name ) ) != 0 ) in main()
293 ret = mbedtls_pk_parse_keyfile( &key, opt.filename, NULL ); in main()
311 if( ( ret = write_certificate_request( &req, opt.output_file, in main()