Changeset 08c48d7 in mod_gnutls for src/gnutls_hooks.c
- Timestamp:
- Jan 2, 2019, 3:22:48 PM (2 years ago)
- Branches:
- asyncio, debian/master, master, proxy-ticket
- Children:
- 4d38cbd
- Parents:
- c7710cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_hooks.c
rc7710cf r08c48d7 198 198 apr_array_pstrcat(ctxt->c->pool, pupgrades, ',')); 199 199 gnutls_datum_t *alpn_protos = 200 apr_palloc(ctxt->c->pool, 201 (pupgrades->nelts + 1) * sizeof(gnutls_datum_t)); 202 for (int i = 0; i < pupgrades->nelts; i++) 203 { 204 alpn_protos[i].data = (void *) APR_ARRAY_IDX(pupgrades, i, char *); 205 alpn_protos[i].size = 206 strnlen(APR_ARRAY_IDX(pupgrades, i, char *), 207 pupgrades->elt_size); 208 } 200 mgs_str_array_to_datum_array(pupgrades, 201 ctxt->c->pool, 202 pupgrades->nelts + 1); 209 203 210 204 /* Add the current (default) protocol at the end of the list */
Note: See TracChangeset
for help on using the changeset viewer.