Lines Matching refs:ctx
68 * ctx - SSL's context structure
76 sunw_use_x509cert(SSL_CTX *ctx, X509 *cert)
80 if (ctx == NULL || cert == NULL) {
85 if (SSL_CTX_use_certificate(ctx, cert) != 1) {
96 * ctx - SSL's context structure
104 sunw_use_pkey(SSL_CTX *ctx, EVP_PKEY *pkey)
107 if (ctx == NULL || pkey == NULL) {
112 if (SSL_CTX_use_PrivateKey(ctx, pkey) != 1) {
128 * ctx - SSL's context structure
136 sunw_use_tastore(SSL_CTX *ctx, STACK_OF(X509) *ta_certs)
143 if (ctx == NULL || ctx->cert_store == NULL || ta_certs == NULL) {
156 ret = X509_STORE_add_cert(ctx->cert_store, tmp);
185 * ctx - SSL's context structure
194 sunw_p12_use_certfile(SSL_CTX *ctx, char *filename, char *passwd)
201 if (ctx == NULL || filename == NULL) {
211 if (sunw_use_x509cert(ctx, cert) == -1) {
239 * ctx - SSL's context structure
248 sunw_p12_use_keyfile(SSL_CTX *ctx, char *filename, char *passwd)
255 if (ctx == NULL || filename == NULL) {
265 if (sunw_use_pkey(ctx, pkey) != 1) {
297 * ctx - SSL's context structure
306 sunw_p12_use_trustfile(SSL_CTX *ctx, char *filename, char *passwd)
313 if (ctx == NULL || filename == NULL) {
323 ret = sunw_use_tastore(ctx, ta_sk);