Added support for client certificates (both client-side and server-side, but still missing an API for extracting the client identity from the certificate).
This commit is contained in:
parent
e9ce2f4e8c
commit
e61ad42191
27 changed files with 4441 additions and 1482 deletions
|
|
@ -300,3 +300,15 @@ read_certificates(const char *fname, size_t *num)
|
|||
VEC_CLEAR(cert_list);
|
||||
return xcs;
|
||||
}
|
||||
|
||||
/* see brssl.h */
|
||||
void
|
||||
free_certificates(br_x509_certificate *certs, size_t num)
|
||||
{
|
||||
size_t u;
|
||||
|
||||
for (u = 0; u < num; u ++) {
|
||||
xfree(certs[u].data);
|
||||
}
|
||||
xfree(certs);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue