Lines Matching refs:x509

57   struct x509_context x509;  member
274 struct x509_context *x509 = (struct x509_context *)ctx; in x509_start_chain() local
276 if(!x509->verifypeer) { in x509_start_chain()
277 x509->cert_num = 0; in x509_start_chain()
281 if(!x509->verifyhost) in x509_start_chain()
283 x509->minimal.vtable->start_chain(&x509->minimal.vtable, server_name); in x509_start_chain()
288 struct x509_context *x509 = (struct x509_context *)ctx; in x509_start_cert() local
290 if(!x509->verifypeer) { in x509_start_cert()
292 if(x509->cert_num == 0) in x509_start_cert()
293 br_x509_decoder_init(&x509->decoder, NULL, NULL); in x509_start_cert()
297 x509->minimal.vtable->start_cert(&x509->minimal.vtable, length); in x509_start_cert()
303 struct x509_context *x509 = (struct x509_context *)ctx; in x509_append() local
305 if(!x509->verifypeer) { in x509_append()
306 if(x509->cert_num == 0) in x509_append()
307 br_x509_decoder_push(&x509->decoder, buf, len); in x509_append()
311 x509->minimal.vtable->append(&x509->minimal.vtable, buf, len); in x509_append()
316 struct x509_context *x509 = (struct x509_context *)ctx; in x509_end_cert() local
318 if(!x509->verifypeer) { in x509_end_cert()
319 x509->cert_num++; in x509_end_cert()
323 x509->minimal.vtable->end_cert(&x509->minimal.vtable); in x509_end_cert()
328 struct x509_context *x509 = (struct x509_context *)ctx; in x509_end_chain() local
330 if(!x509->verifypeer) { in x509_end_chain()
331 return (unsigned)br_x509_decoder_last_error(&x509->decoder); in x509_end_chain()
334 return x509->minimal.vtable->end_chain(&x509->minimal.vtable); in x509_end_chain()
340 struct x509_context *x509 = (struct x509_context *)ctx; in x509_get_pkey() local
342 if(!x509->verifypeer) { in x509_get_pkey()
348 return br_x509_decoder_get_pkey(&x509->decoder); in x509_get_pkey()
351 return x509->minimal.vtable->get_pkey(&x509->minimal.vtable, usages); in x509_get_pkey()
585 br_ssl_client_init_full(&backend->ctx, &backend->x509.minimal, in bearssl_connect_step1()
606 backend->x509.vtable = &x509_vtable; in bearssl_connect_step1()
607 backend->x509.verifypeer = verifypeer; in bearssl_connect_step1()
608 backend->x509.verifyhost = verifyhost; in bearssl_connect_step1()
609 br_ssl_engine_set_x509(&backend->ctx.eng, &backend->x509.vtable); in bearssl_connect_step1()