Ignore:
Timestamp:
Oct 27, 2016 7:58:01 AM (8 years ago)
Author:
ming
Message:

Fixed #1975: Add support to select elliptic curve and signature algorithm for TLS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ssl_sock_common.c

    r5214 r5472  
    6868    } 
    6969 
     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 
    7078    if (src->server_name.slen) { 
    7179        /* Server name must be null-terminated */ 
    7280        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); 
    7391    } 
    7492} 
Note: See TracChangeset for help on using the changeset viewer.