Changeset 6091
- Timestamp:
- Oct 11, 2019 2:26:12 PM (5 years ago)
- Location:
- pjproject/trunk/pjlib/src/pj
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_gtls.c
r5938 r6091 1051 1051 1052 1052 tls_cert_get_info(ssock->pool, &ssock->local_cert_info, cert); 1053 tls_cert_get_chain_raw(ssock->pool, &ssock->local_cert_info, us, 1); 1053 pj_pool_reset(ssock->info_pool); 1054 tls_cert_get_chain_raw(ssock->info_pool, &ssock->local_cert_info, us, 1); 1054 1055 1055 1056 us_out: … … 1078 1079 1079 1080 tls_cert_get_info(ssock->pool, &ssock->remote_cert_info, cert); 1080 tls_cert_get_chain_raw(ssock->pool, &ssock->remote_cert_info, certs, 1081 pj_pool_reset(ssock->info_pool); 1082 tls_cert_get_chain_raw(ssock->info_pool, &ssock->remote_cert_info, certs, 1081 1083 certslen); 1082 1084 -
pjproject/trunk/pjlib/src/pj/ssl_sock_imp_common.c
r6082 r6091 620 620 621 621 /* Secure release pool, i.e: all memory blocks will be zeroed first */ 622 pj_pool_secure_release(&ssock->info_pool); 622 623 pj_pool_secure_release(&ssock->pool); 623 624 } … … 1267 1268 pj_ssl_sock_t *ssock; 1268 1269 pj_status_t status; 1270 pj_pool_t *info_pool; 1269 1271 1270 1272 PJ_ASSERT_RETURN(pool && param && p_ssock, PJ_EINVAL); 1271 1273 PJ_ASSERT_RETURN(param->sock_type == pj_SOCK_STREAM(), PJ_ENOTSUP); 1272 1274 1275 info_pool = pj_pool_create(pool->factory, "ssl_chain%p", 512, 512, NULL); 1273 1276 pool = pj_pool_create(pool->factory, "ssl%p", 512, 512, NULL); 1274 1277 … … 1276 1279 ssock = ssl_alloc(pool); 1277 1280 ssock->pool = pool; 1281 ssock->info_pool = info_pool; 1278 1282 ssock->sock = PJ_INVALID_SOCKET; 1279 1283 ssock->ssl_state = SSL_STATE_NULL; -
pjproject/trunk/pjlib/src/pj/ssl_sock_imp_common.h
r6054 r6091 97 97 { 98 98 pj_pool_t *pool; 99 pj_pool_t *info_pool; /* this is for certificate chain 100 * information allocation. Don't use for 101 * other purposes. */ 99 102 pj_ssl_sock_t *parent; 100 103 pj_ssl_sock_param param; -
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r6079 r6091 1710 1710 chain = SSL_get_peer_cert_chain(ossock->ossl_ssl); 1711 1711 if (chain) { 1712 ssl_update_remote_cert_chain_info(ssock->pool, 1713 &ssock->remote_cert_info, 1714 chain, PJ_TRUE); 1712 pj_pool_reset(ssock->info_pool); 1713 ssl_update_remote_cert_chain_info(ssock->info_pool, 1714 &ssock->remote_cert_info, 1715 chain, PJ_TRUE); 1715 1716 } else { 1716 1717 ssock->remote_cert_info.raw_chain.cnt = 0; 1717 1718 } 1718 1719 }
Note: See TracChangeset
for help on using the changeset viewer.