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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/ssl_sock.h

    r5725 r5821  
    192192} pj_ssl_cert_info; 
    193193 
     194/** 
     195 * The SSL certificate buffer. 
     196 */ 
     197typedef pj_str_t pj_ssl_cert_buffer; 
    194198 
    195199/** 
     
    242246                                                pj_ssl_cert_t **p_cert); 
    243247 
     248 
     249/** 
     250 * Create credential from data buffer. The certificate expected is in  
     251 * PEM format. 
     252 * 
     253 * @param CA_file       The buffer of trusted CA list. 
     254 * @param cert_file     The buffer of certificate. 
     255 * @param privkey_file  The buffer of private key. 
     256 * @param privkey_pass  The password of private key, if any. 
     257 * @param p_cert        Pointer to credential instance to be created. 
     258 * 
     259 * @return              PJ_SUCCESS when successful. 
     260 */ 
     261PJ_DECL(pj_status_t) pj_ssl_cert_load_from_buffer(pj_pool_t *pool, 
     262                                        const pj_ssl_cert_buffer *CA_buf, 
     263                                        const pj_ssl_cert_buffer *cert_buf, 
     264                                        const pj_ssl_cert_buffer *privkey_buf, 
     265                                        const pj_str_t *privkey_pass, 
     266                                        pj_ssl_cert_t **p_cert); 
    244267 
    245268/** 
Note: See TracChangeset for help on using the changeset viewer.