You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to learn picotls a little bit better, I this process I come across code like the following:
I have tried to use gcc -E to expand macro but still, I thought I should ask
The first-line below has a capacity of 3. What it has to be like that? why not 1 or 2 or any other number. Second ptls_buffer_pushv allocates memory. How come it is taking certificates[i].len bot certificate[i].len * sizeof(char)
I am trying to learn picotls a little bit better, I this process I come across code like the following:
I have tried to use gcc -E to expand macro but still, I thought I should ask
The first-line below has a capacity of 3. What it has to be like that? why not 1 or 2 or any other number. Second ptls_buffer_pushv allocates memory. How come it is taking certificates[i].len bot certificate[i].len * sizeof(char)
your thoughts will be appreciated.
ptls_buffer_push_block(buf, 3, { size_t i; for (i = 0; i != num_certificates; ++i) { ptls_buffer_push_block(buf, 3, { ptls_buffer_pushv(buf, certificates[i].base, certificates[i].len); }); ptls_buffer_push_block(buf, 2, { if (i == 0 && ocsp_status.len != 0) { buffer_push_extension(buf, PTLS_EXTENSION_TYPE_STATUS_REQUEST, { ptls_buffer_push(buf, 1); /* status_type == ocsp */ ptls_buffer_push_block(buf, 3, { ptls_buffer_pushv(buf, ocsp_status.base, ocsp_status.len); }); }); } }); } });
The text was updated successfully, but these errors were encountered: