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/src/pjsua2/siptypes.cpp

    r5807 r5821  
    164164    ts.privkey_file     = str2Pj(this->privKeyFile); 
    165165    ts.password         = str2Pj(this->password); 
     166    ts.ca_buf           = str2Pj(this->CaBuf); 
     167    ts.cert_buf         = str2Pj(this->certBuf); 
     168    ts.privkey_buf      = str2Pj(this->privKeyBuf); 
    166169    ts.method           = this->method; 
    167170    ts.ciphers_num      = (unsigned)this->ciphers.size(); 
     
    189192    this->privKeyFile   = pj2Str(prm.privkey_file); 
    190193    this->password      = pj2Str(prm.password); 
     194    this->CaBuf         = pj2Str(prm.ca_buf); 
     195    this->certBuf       = pj2Str(prm.cert_buf); 
     196    this->privKeyBuf    = pj2Str(prm.privkey_buf); 
    191197    this->method        = (pjsip_ssl_method)prm.method; 
    192198    this->proto         = prm.proto; 
     
    211217    NODE_READ_STRING  ( this_node, privKeyFile); 
    212218    NODE_READ_STRING  ( this_node, password); 
     219    NODE_READ_STRING  ( this_node, CaBuf); 
     220    NODE_READ_STRING  ( this_node, certBuf); 
     221    NODE_READ_STRING  ( this_node, privKeyBuf); 
    213222    NODE_READ_NUM_T   ( this_node, pjsip_ssl_method, method); 
    214223    readIntVector     ( this_node, "ciphers", ciphers); 
     
    230239    NODE_WRITE_STRING  ( this_node, privKeyFile); 
    231240    NODE_WRITE_STRING  ( this_node, password); 
     241    NODE_WRITE_STRING  ( this_node, CaBuf); 
     242    NODE_WRITE_STRING  ( this_node, certBuf); 
     243    NODE_WRITE_STRING  ( this_node, privKeyBuf); 
    232244    NODE_WRITE_NUM_T   ( this_node, pjsip_ssl_method, method); 
    233245    writeIntVector     ( this_node, "ciphers", ciphers); 
Note: See TracChangeset for help on using the changeset viewer.