Changeset 5472 for pjproject/trunk/pjlib/src/pj/ssl_sock_common.c
- Timestamp:
- Oct 27, 2016 7:58:01 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_common.c
r5214 r5472 68 68 } 69 69 70 if (src->curves_num > 0) { 71 unsigned i; 72 dst->curves = (pj_ssl_curve *)pj_pool_calloc(pool, src->curves_num, 73 sizeof(pj_ssl_curve)); 74 for (i = 0; i < src->curves_num; ++i) 75 dst->curves[i] = src->curves[i]; 76 } 77 70 78 if (src->server_name.slen) { 71 79 /* Server name must be null-terminated */ 72 80 pj_strdup_with_null(pool, &dst->server_name, &src->server_name); 81 } 82 83 if (src->sigalgs.slen) { 84 /* Sigalgs name must be null-terminated */ 85 pj_strdup_with_null(pool, &dst->sigalgs, &src->sigalgs); 86 } 87 88 if (src->entropy_path.slen) { 89 /* Path name must be null-terminated */ 90 pj_strdup_with_null(pool, &dst->entropy_path, &src->entropy_path); 73 91 } 74 92 }
Note: See TracChangeset
for help on using the changeset viewer.