Skip to content

Commit 90cf8cb

Browse files
committed
Explain cert_cb
1 parent 24917b1 commit 90cf8cb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ocsp/stapling/ocsp-server.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
static unsigned char* ocsp_resp = NULL;
4343
static int ocsp_resp_sz = 0;
4444

45+
/* This callback can be used to choose between multiple certs/keys. It can
46+
* be used to select certs based on SNI, ciphersuites, etc. Here we just
47+
* load a single cert/key. */
4548
static int cert_cb(WOLFSSL* ssl, void* arg)
4649
{
4750
(void)arg;

0 commit comments

Comments
 (0)