| /lighttpd1.4/src/ |
| H A D | sys-crypto-md.h | 25 MD4_Init(MD4_CTX *ctx) in MD4_Init() argument 27 nettle_md4_init(ctx); in MD4_Init() 46 MD5_Init(MD5_CTX *ctx) in MD5_Init() argument 48 nettle_md5_init(ctx); in MD5_Init() 67 SHA1_Init(SHA_CTX *ctx) in SHA1_Init() argument 69 nettle_sha1_init(ctx); in SHA1_Init() 161 MD4_Init(MD4_CTX *ctx) in MD4_Init() argument 185 MD5_Init(MD5_CTX *ctx) in MD5_Init() argument 221 SHA1_Init(SHA_CTX *ctx) in SHA1_Init() argument 350 MD4_Init(MD4_CTX *ctx) in MD4_Init() argument [all …]
|
| H A D | configparser.y | 54 if (ctx->configs_stack.used > 0 && ctx->current->context_ndx == 0) { in configparser_push() 65 ctx->current = ctx->configs_stack.data[--ctx->configs_stack.used]; in configparser_pop() 364 ctx->ok = 0; 402 if (ctx->ok) { in key() 426 if (ctx->ok) { in key() 445 if (ctx->ok) { in key() 489 if (ctx->ok) { in expression() 509 if (ctx->ok) { in value() 549 ctx->ok = 0; in value() 810 if (0 != config_parse_file(ctx->srv, ctx, A->ptr)) { in stringop() [all …]
|
| H A D | algo_hmac.c | 46 EVP_MD_CTX * const ctx = EVP_MD_CTX_new(); in EVP_HMAC() local 47 if (NULL == ctx) { in EVP_HMAC() 53 && (1 == EVP_DigestSignUpdate(ctx, d, n)) in EVP_HMAC() 54 && (1 == EVP_DigestSignFinal(ctx, md, md_len)); in EVP_HMAC() 55 EVP_MD_CTX_free(ctx); in EVP_HMAC() 85 struct hmac_sha1_ctx ctx; in li_hmac_sha1() local 86 hmac_sha1_set_key(&ctx, slen, (const uint8_t *)secret); in li_hmac_sha1() 87 hmac_sha1_update(&ctx, mlen, (const uint8_t *)msg); in li_hmac_sha1() 161 struct hmac_sha256_ctx ctx; in li_hmac_sha256() local 163 hmac_sha256_update(&ctx, mlen, (const uint8_t *)msg); in li_hmac_sha256() [all …]
|
| H A D | keyvalue.c | 188 const PCRE2_SIZE *ovec = (PCRE2_SIZE *)ctx->ovec; in pcre_keyvalue_buffer_append_match() 190 const int *ovec = (int *)ctx->ovec; in pcre_keyvalue_buffer_append_match() 194 burl_append(b, ctx->subject + off, len, flags); in pcre_keyvalue_buffer_append_match() 199 const struct cond_match_t * const cache = ctx->cache; in pcre_keyvalue_buffer_append_ctxmatch() 314 const buffer *qs = ctx->burl->query; in pcre_keyvalue_buffer_subst_ext() 381 ? pcre_keyvalue_buffer_append_match(b, ctx, num, 0) in pcre_keyvalue_buffer_subst() 427 ctx->m = i; in pcre_keyvalue_buffer_process() 431 ctx->m = i; in pcre_keyvalue_buffer_process() 432 ctx->n = n; in pcre_keyvalue_buffer_process() 433 ctx->subject = input->ptr; in pcre_keyvalue_buffer_process() [all …]
|
| H A D | mod_authn_file.c | 505 MD5_CTX ctx; in apr_md5_encode() local 508 MD5_Init(&ctx); in apr_md5_encode() 509 MD5_Update(&ctx, pw, pwlen); in apr_md5_encode() 510 MD5_Update(&ctx, salt, sl); in apr_md5_encode() 512 MD5_Final(final, &ctx); in apr_md5_encode() 517 MD5_Init(&ctx); in apr_md5_encode() 533 MD5_Update(&ctx, salt, sl); in apr_md5_encode() 542 MD5_Update(&ctx, final, in apr_md5_encode() 558 MD5_Final(final, &ctx); in apr_md5_encode() 566 MD5_Init(&ctx); in apr_md5_encode() [all …]
|
| H A D | rand.c | 220 li_arcfour_init_random_key_hashed(struct arcfour_ctx *ctx) in li_arcfour_init_random_key_hashed() argument 228 memset(ctx, 0, sizeof(*ctx)); in li_arcfour_init_random_key_hashed() 237 nettle_arcfour_set_key(ctx, SHA256_DIGEST_SIZE, digest); in li_arcfour_init_random_key_hashed() 238 nettle_arcfour_crypt(ctx, sizeof(buf), buf, buf); in li_arcfour_init_random_key_hashed() 239 nettle_arcfour_crypt(ctx, sizeof(buf), buf, buf); in li_arcfour_init_random_key_hashed() 240 nettle_arcfour_crypt(ctx, sizeof(buf), buf, buf); in li_arcfour_init_random_key_hashed()
|
| H A D | fdevent_fdnode.c | 26 fdevent_register (fdevents *ev, int fd, fdevent_handler handler, void *ctx) in fdevent_register() argument 31 fdn->ctx = ctx; in fdevent_register() 53 fdn->ctx = ev->pendclose; in fdevent_sched_close()
|
| H A D | mod_redirect.c | 164 pcre_keyvalue_ctx ctx; in URIHANDLER_FUNC() local 170 ctx.cache = NULL; in URIHANDLER_FUNC() 172 ctx.cache = r->cond_match[p->conf.redirect->x0 - 1]; in URIHANDLER_FUNC() 174 ctx.burl = &burl; in URIHANDLER_FUNC() 187 rc = pcre_keyvalue_buffer_process(p->conf.redirect, &ctx, in URIHANDLER_FUNC()
|
| H A D | mod_rewrite.c | 281 pcre_keyvalue_ctx ctx; in process_rewrite_rules() local 292 ctx.cache = NULL; in process_rewrite_rules() 294 ctx.cache = r->cond_match[kvb->x0 - 1]; in process_rewrite_rules() 296 ctx.burl = &burl; in process_rewrite_rules() 306 rc = pcre_keyvalue_buffer_process(kvb, &ctx, &r->target, tb); in process_rewrite_rules() 312 if (ctx.m < kvb->x1) *hctx |= REWRITE_STATE_FINISHED; in process_rewrite_rules()
|
| H A D | fdevent.h | 10 typedef handler_t (*fdevent_handler)(void *ctx, int revents); 14 void *ctx; member 74 fdnode * fdevent_register(fdevents *ev, int fd, fdevent_handler handler, void *ctx);
|
| H A D | fdevent_impl.c | 290 fdn = (fdnode *)fdn->ctx; /* next */ in fdevent_sched_run() 344 (*fdn->handler)(fdn->ctx, revents); in fdevent_linux_sysepoll_poll() 474 (*fdn->handler)(fdn->ctx, revents); in fdevent_freebsd_kqueue_poll() 577 (*fdn->handler)(fdn->ctx, revents); in fdevent_solaris_port_poll() 669 (*fdn->handler)(fdn->ctx, revents); in fdevent_solaris_devpoll_poll() 798 (*fdn->handler)(fdn->ctx, pfds[i].revents); in fdevent_poll_poll() 909 (*fdn->handler)(fdn->ctx, revents); in fdevent_select_poll()
|
| H A D | mod_openssl.c | 973 err = X509_STORE_CTX_get_error(ctx); in verify_callback() 974 depth = X509_STORE_CTX_get_error_depth(ctx); in verify_callback() 995 X509_STORE_CTX_set_error(ctx, err); in verify_callback() 1006 err_cert = ctx->current_cert; in verify_callback() 1022 X509_STORE_CTX_set_error(ctx, err); in verify_callback() 1032 err_cert = ctx->current_cert; in verify_callback() 2130 OSSL_STORE_CTX *ctx = NULL; in mod_openssl_ssl_conf_dhparameters() 2132 if (NULL != ctx) { in mod_openssl_ssl_conf_dhparameters() 2134 while (!OSSL_STORE_eof(ctx)) { in mod_openssl_ssl_conf_dhparameters() 2143 OSSL_STORE_close(ctx); in mod_openssl_ssl_conf_dhparameters() [all …]
|
| H A D | keyvalue.h | 41 handler_t pcre_keyvalue_buffer_process(const pcre_keyvalue_buffer *kvb, pcre_keyvalue_ctx *ctx, con…
|
| H A D | mod_mbedtls.c | 369 mbedtls_ssl_ticket_context *ctx = &p->ticket_ctx; in mod_mbedtls_session_ticket_key_check() 370 ctx->ticket_lifetime = stek->expire_ts - stek->active_ts; in mod_mbedtls_session_ticket_key_check() 371 ctx->active = 1 - ctx->active; in mod_mbedtls_session_ticket_key_check() 372 mbedtls_ssl_ticket_key *key = ctx->keys + ctx->active; in mod_mbedtls_session_ticket_key_check() 378 int rc = mbedtls_cipher_setkey(&key->ctx, stek->tick_aes_key, in mod_mbedtls_session_ticket_key_check() 383 ? cur_ts - ctx->ticket_lifetime - 1 in mod_mbedtls_session_ticket_key_check() 385 ctx->active = 1 - ctx->active; in mod_mbedtls_session_ticket_key_check() 981 rc = mbedtls_pk_parse_key(ctx, (unsigned char *)data, (size_t)dlen+1, in mod_mbedtls_pk_parse_keyfile() 986 rc = mbedtls_pk_parse_key(ctx, (unsigned char *)data, (size_t)dlen+1, in mod_mbedtls_pk_parse_keyfile() 2311 mod_mbedtls_debug_cb(void *ctx, int level, in mod_mbedtls_debug_cb() argument [all …]
|
| H A D | configfile.h | 84 void configparser(void *yyp, int yymajor, buffer *yyminor, config_t *ctx);
|
| H A D | mod_wolfssl.c | 338 EVP_CIPHER_CTX *ctx, HMAC_CTX *hctx, int enc) in ssl_tlsext_ticket_key_cb() argument 348 EVP_EncryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, k->tick_aes_key, iv); in ssl_tlsext_ticket_key_cb() 360 EVP_DecryptInit_ex(ctx, EVP_aes_256_cbc(), NULL, k->tick_aes_key, iv); in ssl_tlsext_ticket_key_cb() 1154 verify_callback(int preverify_ok, X509_STORE_CTX *ctx) in verify_callback() argument 1162 err = X509_STORE_CTX_get_error(ctx); in verify_callback() 1163 depth = X509_STORE_CTX_get_error_depth(ctx); in verify_callback() 1169 ssl = X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx()); in verify_callback() 1184 X509_STORE_CTX_set_error(ctx, err); in verify_callback() 1192 err_cert = ctx->current_cert;/*wolfSSL_X509_STORE_CTX_get_current_cert*/ in verify_callback() 1208 X509_STORE_CTX_set_error(ctx, err); in verify_callback() [all …]
|
| H A D | mod_dirlisting.c | 246 pcre_keyvalue_ctx ctx = { NULL, NULL, -1, 0, NULL, NULL }; in mod_dirlisting_exclude() local 253 ctx.cache = &cache; in mod_dirlisting_exclude() 254 ctx.burl = &bp; in mod_dirlisting_exclude() 257 return HANDLER_ERROR == pcre_keyvalue_buffer_process(kvb,&ctx,&input,NULL) in mod_dirlisting_exclude() 258 || -1 != ctx.m; in mod_dirlisting_exclude()
|
| H A D | mod_cgi.c | 468 static handler_t cgi_handle_fdevent_send (void *ctx, int revents) { in cgi_handle_fdevent_send() argument 469 handler_ctx *hctx = ctx; in cgi_handle_fdevent_send() 591 static handler_t cgi_handle_fdevent(void *ctx, int revents) { in cgi_handle_fdevent() argument 592 handler_ctx *hctx = ctx; in cgi_handle_fdevent()
|
| H A D | lemon.c | 406 char *ctx; /* Declaration of 2nd argument to constructor */ member 2518 psp->declargslot = &(psp->gp->ctx); in parseonetoken() 4481 if( lemp->ctx && lemp->ctx[0] ){ in ReportTable() 4482 i = lemonStrlen(lemp->ctx); in ReportTable() 4483 while( i>=1 && ISSPACE(lemp->ctx[i-1]) ) i--; in ReportTable() 4484 while( i>=1 && (ISALNUM(lemp->ctx[i-1]) || lemp->ctx[i-1]=='_') ) i--; in ReportTable() 4485 fprintf(out,"#define %sCTX_SDECL %s;\n",name,lemp->ctx); lineno++; in ReportTable() 4486 fprintf(out,"#define %sCTX_PDECL ,%s\n",name,lemp->ctx); lineno++; in ReportTable() 4487 fprintf(out,"#define %sCTX_PARAM ,%s\n",name,&lemp->ctx[i]); lineno++; in ReportTable() 4489 name,lemp->ctx,&lemp->ctx[i]); lineno++; in ReportTable() [all …]
|
| H A D | stat_cache.c | 547 static handler_t stat_cache_handle_fdevent(void *ctx, int revent) in stat_cache_handle_fdevent() argument 549 stat_cache_fam * const scf = ctx; /* sc.scf */ in stat_cache_handle_fdevent()
|
| H A D | gw_backend.c | 1078 static handler_t gw_handle_fdevent(void *ctx, int revents); 2407 static handler_t gw_handle_fdevent(void *ctx, int revents) { in gw_handle_fdevent() argument 2408 gw_handler_ctx *hctx = ctx; in gw_handle_fdevent()
|
| H A D | mod_gnutls.c | 1504 mod_gnutls_client_hello_ext_cb(void *ctx, unsigned int tls_id, in mod_gnutls_client_hello_ext_cb() argument 1509 return mod_gnutls_SNI((handler_ctx *)ctx, data, dlen); in mod_gnutls_client_hello_ext_cb() 1512 return mod_gnutls_ALPN((handler_ctx *)ctx, data, dlen); in mod_gnutls_client_hello_ext_cb()
|
| /lighttpd1.4/src/t/ |
| H A D | test_keyvalue.c | 48 pcre_keyvalue_ctx ctx; in test_keyvalue_pcre_keyvalue_buffer_process() local 55 ctx.burl = &burl; in test_keyvalue_pcre_keyvalue_buffer_process() 64 ctx.cache = &cache; in test_keyvalue_pcre_keyvalue_buffer_process() 86 rc = pcre_keyvalue_buffer_process(kvb, &ctx, url, result); in test_keyvalue_pcre_keyvalue_buffer_process() 93 rc = pcre_keyvalue_buffer_process(kvb, &ctx, url, result); in test_keyvalue_pcre_keyvalue_buffer_process() 100 rc = pcre_keyvalue_buffer_process(kvb, &ctx, url, result); in test_keyvalue_pcre_keyvalue_buffer_process() 107 rc = pcre_keyvalue_buffer_process(kvb, &ctx, url, result); in test_keyvalue_pcre_keyvalue_buffer_process() 114 rc = pcre_keyvalue_buffer_process(kvb, &ctx, url, result); in test_keyvalue_pcre_keyvalue_buffer_process()
|
| /lighttpd1.4/ |
| H A D | NEWS | 1481 * [multiple] con hooks store ctx in con->plugin_ctx
|