Lines Matching refs:apparg
130 * TLS_APP_PROCESS_INIT -- void ...(int fd, int client_p, void *apparg)
133 * TLS_APP_ERRFLUSH -- void ...(int child_p, char *, size_t, void *apparg)
137 # define TLS_APP_PROCESS_INIT(fd, client_p, apparg) ((void) 0)
150 tls_app_errflush(int child_p, char *errbuf, size_t num, void *apparg)
198 int tls_start_proxy(struct tls_start_proxy_args a, void *apparg)
241 tls_child_apparg = apparg;
245 TLS_APP_PROCESS_INIT(a.fd, a.client_p, apparg);
293 static void tls_errflush(void *apparg)
309 TLS_APP_ERRFLUSH(tls_child_p, errbuf, errbuf_i, apparg);
314 static void tls_errprintf(int flush, void *apparg, const char *fmt, ...)
337 tls_errflush(apparg);
340 tls_errflush(apparg);
350 const char *default_text, void *apparg)
391 tls_errprintf(0, apparg, "OpenSSL error%s%s: %s:%s:%d:%s\n",
400 tls_errprintf(0, apparg, "OpenSSL error%s%s: %s\n", app_prefix_1,
404 tls_errflush(apparg);
415 static int tls_init(void *apparg)
422 tls_errprintf(1, apparg, "SSL_library_init failed.\n");
474 int tls_rand_seed_from_file(const char *filename, size_t n, void *apparg)
483 if (tls_init(apparg) == -1)
502 tls_errprintf(1, apparg,
605 void tls_set_dhe1024(int i, void *apparg)
617 tls_init(apparg);
631 tls_openssl_errors("", "", NULL, apparg);
637 tls_openssl_errors("", "", NULL, apparg);
660 SSL_CTX *tls_create_ctx(struct tls_create_ctx_args a, void *apparg)
667 if (tls_init(apparg) == -1)
682 tls_errprintf(1, apparg, "Need a key file.\n");
686 tls_errprintf(1, apparg, "Need a certificate chain file.\n");
697 if (tls_rand_seed_from_file(a.key_file, 0, apparg) == -1)
703 tls_errprintf(1, apparg,
751 tls_errprintf(1, apparg,
774 tls_set_dhe1024(i, apparg);
806 tls_openssl_errors(err_pref_1, err_pref_2, NULL, apparg);