Ignore:
Timestamp:
Jul 15, 2018 2:09:23 PM (2 years ago)
Author:
riza
Message:

Close #484: Allow to use binary certificate in TLS transport.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_transport_tls.h

    r5649 r5821  
    101101     */ 
    102102    pj_str_t    privkey_file; 
     103 
     104    /** 
     105     * Certificate of Authority (CA) buffer. If ca_list_file, ca_list_path, 
     106     * cert_file or privkey_file are set, this setting will be ignored. 
     107     */ 
     108    pj_ssl_cert_buffer ca_buf; 
     109 
     110    /** 
     111     * Public endpoint certificate buffer, which will be used as client- 
     112     * side  certificate for outgoing TLS connection, and server-side 
     113     * certificate for incoming TLS connection. If ca_list_file, ca_list_path, 
     114     * cert_file or privkey_file are set, this setting will be ignored. 
     115     */ 
     116    pj_ssl_cert_buffer cert_buf; 
     117 
     118    /** 
     119     * Optional private key buffer of the endpoint certificate to be used.  
     120     * If ca_list_file, ca_list_path, cert_file or privkey_file are set,  
     121     * this setting will be ignored. 
     122     */ 
     123    pj_ssl_cert_buffer privkey_buf; 
    103124 
    104125    /** 
     
    340361    pj_strdup_with_null(pool, &dst->sigalgs, &src->sigalgs); 
    341362    pj_strdup_with_null(pool, &dst->entropy_path, &src->entropy_path); 
     363 
     364    pj_strdup(pool, &dst->ca_buf, &src->ca_buf); 
     365    pj_strdup(pool, &dst->cert_buf, &src->cert_buf); 
     366    pj_strdup(pool, &dst->privkey_buf, &src->privkey_buf); 
     367 
    342368    if (src->ciphers_num) { 
    343369        unsigned i; 
Note: See TracChangeset for help on using the changeset viewer.