Ignore:
Timestamp:
Jan 15, 2015 6:55:02 AM (9 years ago)
Author:
nanang
Message:

Close #1810: Adding CA path support into SSL socket.

File:
1 edited

Legend:

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

    r4968 r4973  
    202202                                                 const pj_str_t *privkey_pass, 
    203203                                                 pj_ssl_cert_t **p_cert); 
     204 
     205/** 
     206 * Create credential from files. 
     207 * 
     208 * This is the same as pj_ssl_cert_load_from_files() but also 
     209 * accepts an additional param CA_path to load CA certificates from 
     210 * a directory. 
     211 * 
     212 * @param CA_file       The file of trusted CA list. 
     213 * @param CA_path       The path to a directory of trusted CA list. 
     214 * @param cert_file     The file of certificate. 
     215 * @param privkey_file  The file of private key. 
     216 * @param privkey_pass  The password of private key, if any. 
     217 * @param p_cert        Pointer to credential instance to be created. 
     218 * 
     219 * @return              PJ_SUCCESS when successful. 
     220 */ 
     221PJ_DECL(pj_status_t) pj_ssl_cert_load_from_files2( 
     222                                                pj_pool_t *pool, 
     223                                                const pj_str_t *CA_file, 
     224                                                const pj_str_t *CA_path, 
     225                                                const pj_str_t *cert_file, 
     226                                                const pj_str_t *privkey_file, 
     227                                                const pj_str_t *privkey_pass, 
     228                                                pj_ssl_cert_t **p_cert); 
    204229 
    205230 
Note: See TracChangeset for help on using the changeset viewer.