Lines Matching refs:certificate

910 	} __attribute__ (( packed )) *certificate;
914 /* If we have a certificate to send, determine the applicable
920 /* Parse certificate to determine public-key algorithm */
925 "certificate: %s\n", tls, strerror ( rc ) );
940 certificate = zalloc ( sizeof ( *certificate ) );
941 if ( ! certificate )
945 certificate->type_length =
947 htonl ( sizeof ( *certificate ) -
948 sizeof ( certificate->type_length ) ) );
949 tls_set_uint24 ( certificate->length,
950 sizeof ( certificate->certificates ) );
952 tls_set_uint24 ( certificate->certificates[0].length,
953 sizeof ( certificate->certificates[0].data ) );
954 memcpy ( certificate->certificates[0].data,
956 sizeof ( certificate->certificates[0].data ) );
960 rc = tls_send_handshake ( tls, certificate, sizeof ( *certificate ) );
963 free ( certificate );
1293 * Parse certificate chain
1297 * @v len Length of certificate chain
1306 } __attribute__ (( packed )) *certificate;
1312 /* Free any existing certificate chain */
1316 /* Create certificate chain */
1326 /* Extract raw certificate data */
1327 certificate = data;
1328 certificate_len = tls_uint24 ( certificate->length );
1329 next = ( certificate->data + certificate_len );
1331 DBGC ( tls, "TLS %p overlength certificate:\n", tls );
1337 /* Add certificate to chain */
1338 if ( ( rc = x509_append_raw ( tls->chain, certificate->data,
1340 DBGC ( tls, "TLS %p could not append certificate: %s\n",
1346 DBGC ( tls, "TLS %p found certificate %s\n",
1349 /* Move to next certificate in list */
1376 } __attribute__ (( packed )) *certificate = data;
1377 size_t certificates_len = tls_uint24 ( certificate->length );
1378 const void *end = ( certificate->certificates + certificates_len );
1389 /* Parse certificate chain */
1390 if ( ( rc = tls_parse_chain ( tls, certificate->certificates,
1409 /* We can only send a single certificate, so there is no point
1444 /* Begin certificate validation */
1446 DBGC ( tls, "TLS %p could not start certificate validation: "
2196 * Handle certificate validation completion
2211 DBGC ( tls, "TLS %p certificate validation failed: %s\n",
2215 DBGC ( tls, "TLS %p certificate validation succeeded\n", tls );
2217 /* Extract first certificate */
2252 /** TLS certificate validator interface operations */
2257 /** TLS certificate validator interface descriptor */