Home
last modified time | relevance | path

Searched refs:ctx (Results 26 – 50 of 80) sorted by relevance

1234

/PHP-5.6/ext/hash/tests/
H A Dhmac-md5.phpt8 $ctx = hash_init('md5',HASH_HMAC,str_repeat(chr(0x0b), 16));
9 hash_update($ctx, 'Hi There');
10 echo hash_final($ctx) . "\n";
12 $ctx = hash_init('md5',HASH_HMAC,'Jefe');
13 hash_update($ctx, 'what do ya want for nothing?');
14 echo hash_final($ctx) . "\n";
/PHP-5.6/sapi/litespeed/
H A Dlsapi_main.c860 if (!ctx->path || !*ctx->path) { in lsapi_activate_user_ini_basic_checks()
886 ctx->path_len = strlen(ctx->path); in lsapi_activate_user_ini_mk_path()
890 ctx->path_len = zend_dirname(path, ctx->path_len); in lsapi_activate_user_ini_mk_path()
908 if (!IS_ABSOLUTE_PATH(ctx->path, ctx->path_len)) { in lsapi_activate_user_ini_mk_realpath()
918 ctx->path_len = strlen(ctx->path); in lsapi_activate_user_ini_mk_realpath()
941 ctx->entry = zend_hash_str_find_ptr(&user_config_cache, ctx->path, ctx->path_len); in lsapi_activate_user_ini_mk_user_config()
966 ctx->path_len, ctx->entry); in lsapi_activate_user_ini_mk_user_config()
1008 if (!ctx->entry->expires || request_time > ctx->entry->expires) in lsapi_activate_user_ini_walk_down_the_path()
1010 docroot_len = ctx->doc_root && ctx->doc_root[0] in lsapi_activate_user_ini_walk_down_the_path()
1016 strncmp(ctx->path, ctx->doc_root, docroot_len) != 0; in lsapi_activate_user_ini_walk_down_the_path()
[all …]
/PHP-5.6/ext/standard/
H A Dcrypt_blowfish.c478 R ^= data.ctx.P[N + 1]; \
499 R ^= data.ctx.P[N + 1]; \
508 L ^= data.ctx.P[0]; \
531 _BF_body_r(&data.ctx);
535 ptr = data.ctx.P; \
543 ptr = data.ctx.S[0]; \
666 BF_ctx ctx; in BF_crypt() member
707 memcpy(data.ctx.S, BF_init_state.S, sizeof(data.ctx.S)); in BF_crypt()
714 data.ctx.P[i] = L; in BF_crypt()
715 data.ctx.P[i + 1] = R; in BF_crypt()
[all …]
H A Dphp_crypt_r.c129 HCRYPTHASH ctx, ctx1; in php_md5_crypt_r() local
171 if(!CryptHashData(ctx, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r()
181 if(!CryptHashData( ctx, (BYTE *)sp, sl, 0)) { in php_md5_crypt_r()
214 CryptHashData(ctx, (const BYTE *)final, 1, 0); in php_md5_crypt_r()
216 CryptHashData(ctx, (const BYTE *)pw, 1, 0); in php_md5_crypt_r()
302 CryptDestroyHash(ctx); in php_md5_crypt_r()
325 PHP_MD5_CTX ctx, ctx1; in php_md5_crypt_r() local
345 PHP_MD5Init(&ctx); in php_md5_crypt_r()
354 PHP_MD5Update(&ctx, (const unsigned char *)sp, sl); in php_md5_crypt_r()
372 PHP_MD5Update(&ctx, final, 1); in php_md5_crypt_r()
[all …]
H A Dmd5.h51 PHPAPI void PHP_MD5Init(PHP_MD5_CTX *ctx);
52 PHPAPI void PHP_MD5Update(PHP_MD5_CTX *ctx, const void *data, size_t size);
53 PHPAPI void PHP_MD5Final(unsigned char *result, PHP_MD5_CTX *ctx);
/PHP-5.6/ext/openssl/tests/
H A Dtlsv1.0_wrapper.phpt11 $ctx = stream_context_create(['ssl' => [
15 $server = stream_socket_server('tlsv1.0://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
25 $ctx = stream_context_create(['ssl' => [
32 $client = stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
35 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
38 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
H A Dtlsv1.1_wrapper.phpt12 $ctx = stream_context_create(['ssl' => [
16 $server = stream_socket_server('tlsv1.1://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
26 $ctx = stream_context_create(['ssl' => [
33 $client = stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
36 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
39 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
H A Dtlsv1.2_wrapper.phpt12 $ctx = stream_context_create(['ssl' => [
16 $server = stream_socket_server('tlsv1.2://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
26 $ctx = stream_context_create(['ssl' => [
33 $client = stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
36 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
39 $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
H A Dbug73072.phpt11 $ctx = stream_context_create(['ssl' => [
19 $server = stream_socket_server('tls://127.0.0.1:64322', $errno, $errstr, $flags, $ctx);
37 $ctx = stream_context_create(['ssl' => $ctxArr]);
38 @stream_socket_client("tls://127.0.0.1:64322", $errno, $errstr, 1, $flags, $ctx);
H A Dbug68920.phpt31 $ctx = stream_context_create(['ssl' => ['verify_peer'=> false, 'peer_fingerprint' => true]]);
32 $sock = stream_socket_client($serverUri, $errno, $errstr, 30, $clientFlags, $ctx);
35 $ctx = stream_context_create(['ssl' => ['verify_peer'=> false, 'peer_fingerprint' => null]]);
36 $sock = stream_socket_client($serverUri, $errno, $errstr, 30, $clientFlags, $ctx);
39 $ctx = stream_context_create(['ssl' => ['verify_peer'=> false, 'peer_fingerprint' => []]]);
40 $sock = stream_socket_client($serverUri, $errno, $errstr, 30, $clientFlags, $ctx);
43 $ctx = stream_context_create(['ssl' => ['verify_peer'=> false, 'peer_fingerprint' => ['foo']]]);
44 $sock = stream_socket_client($serverUri, $errno, $errstr, 30, $clientFlags, $ctx);
/PHP-5.6/sapi/aolserver/
H A Daolserver.c525 path = Ns_ConfigGetPath(ctx->ns_server, ctx->ns_module, NULL); in php_ns_config()
534 Ns_RegisterRequest(ctx->ns_server, "GET", value, php_ns_request_handler, NULL, ctx, 0); in php_ns_config()
535 Ns_RegisterRequest(ctx->ns_server, "POST", value, php_ns_request_handler, NULL, ctx, 0); in php_ns_config()
581 ctx->sapi_module->shutdown(ctx->sapi_module); in php_ns_server_shutdown()
585 free(ctx->ns_module); in php_ns_server_shutdown()
586 free(ctx->ns_server); in php_ns_server_shutdown()
587 free(ctx); in php_ns_server_shutdown()
599 php_ns_context *ctx; in Ns_ModuleInit() local
609 ctx = malloc(sizeof *ctx); in Ns_ModuleInit()
615 php_ns_config(ctx, 1); in Ns_ModuleInit()
[all …]
/PHP-5.6/sapi/milter/
H A Dphp_milter.c99 SMFICTX *ctx;
224 MG(ctx) = ctx; in mlfi_connect()
258 MG(ctx) = ctx; in mlfi_helo()
298 MG(ctx) = ctx; in mlfi_envfrom()
338 MG(ctx) = ctx; in mlfi_envrcpt()
377 MG(ctx) = ctx; in mlfi_header()
409 MG(ctx) = ctx; in mlfi_eoh()
443 MG(ctx) = ctx; in mlfi_body()
474 MG(ctx) = ctx; in mlfi_eom()
503 MG(ctx) = ctx; in mlfi_abort()
[all …]
/PHP-5.6/sapi/apache2handler/
H A Dphp_functions.c63 if (!filename || !ctx || !ctx->r) { in php_apache_lookup_uri()
67 return ap_sub_req_lookup_uri(filename, ctx->r, ctx->r->output_filters); in php_apache_lookup_uri()
175 php_struct *ctx; in PHP_FUNCTION() local
185 ctx = SG(server_context); in PHP_FUNCTION()
199 php_struct *ctx; in PHP_FUNCTION() local
209 ctx = SG(server_context); in PHP_FUNCTION()
223 php_struct *ctx; in PHP_FUNCTION() local
255 php_struct *ctx; in PHP_FUNCTION() local
268 r = ctx->r; in PHP_FUNCTION()
290 php_struct *ctx; in PHP_FUNCTION() local
[all …]
/PHP-5.6/ext/gd/libgd/
H A Dgdtest.c26 gdIOCtxPtr ctx; in main() local
79 ctx = gdNewDynamicCtx (sz, iptr); in main()
80 im2 = gdImageCreateFromPngCtx (ctx); in main()
85 ctx->gd_free (ctx); in main()
112 ctx = gdNewDynamicCtx (sz, iptr); in main()
114 im2 = gdImageCreateFromGd2Ctx (ctx); in main()
120 ctx->gd_free (ctx); in main()
147 ctx = gdNewDynamicCtx (sz, iptr); in main()
149 im2 = gdImageCreateFromGdCtx (ctx); in main()
155 ctx->gd_free (ctx); in main()
/PHP-5.6/ext/openssl/
H A Dxp_ssl.c90 SSL_CTX *ctx; member
109 SSL_CTX *ctx; member
1328 SSL_CTX *ctx; in enable_server_sni() local
1384 SSL_CTX_free(ctx); in enable_server_sni()
1391 SSL_CTX_free(ctx); in enable_server_sni()
1395 sslsock->sni_certs[i].ctx = ctx; in enable_server_sni()
1487 if (sslsock->ctx == NULL) { in php_openssl_setup_crypto()
1548 sslsock->ctx = NULL; in php_openssl_setup_crypto()
2028 if (sslsock->ctx) { in php_openssl_sockop_close()
2030 sslsock->ctx = NULL; in php_openssl_sockop_close()
[all …]
/PHP-5.6/TSRM/
H A DTSRM.h162 #define TSRMLS_FETCH_FROM_CTX(ctx) void ***tsrm_ls = (void ***) ctx argument
163 #define TSRMLS_SET_CTX(ctx) ctx = (void ***) tsrm_ls argument
177 #define TSRMLS_FETCH_FROM_CTX(ctx) argument
178 #define TSRMLS_SET_CTX(ctx) argument
/PHP-5.6/main/
H A Dreentrancy.c315 do_rand(unsigned long *ctx) in do_rand() argument
317 return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)PHP_RAND_MAX + 1)); in do_rand()
322 php_rand_r(unsigned int *ctx) in php_rand_r() argument
324 u_long val = (u_long) *ctx; in php_rand_r()
325 *ctx = do_rand(&val); in php_rand_r()
326 return (int) *ctx; in php_rand_r()
/PHP-5.6/ext/oci8/
H A Doci8_lob.c177 if ((*(ctx->lob_len) + lenp) > (ctx->alloc_len)) { in php_oci_lob_callback()
180 *(ctx->lob_len) = 0; in php_oci_lob_callback()
183 memcpy(*(ctx->lob_data) + *(ctx->lob_len), bufxp, (size_t) lenp); in php_oci_lob_callback()
185 *(*(ctx->lob_data) + *(ctx->lob_len)) = 0x00; in php_oci_lob_callback()
190 if ((*(ctx->lob_len) + lenp) > ctx->alloc_len) { in php_oci_lob_callback()
196 memcpy(*(ctx->lob_data) + *(ctx->lob_len), bufxp, (size_t) lenp); in php_oci_lob_callback()
204 *(ctx->lob_len) = 0; in php_oci_lob_callback()
249 php_oci_lob_ctx ctx; in php_oci_lob_read() local
262 ctx.lob_data = data; in php_oci_lob_read()
263 ctx.alloc_len = 0; in php_oci_lob_read()
[all …]
/PHP-5.6/ext/standard/tests/streams/
H A Dbug44712.phpt5 $ctx = stream_context_get_default();
6 stream_context_set_params($ctx, array("options" => 1));
/PHP-5.6/ext/soap/
H A Dphp_schema.h25 int load_schema(sdlCtx *ctx, xmlNodePtr schema TSRMLS_DC);
26 void schema_pass2(sdlCtx *ctx);
H A Dphp_schema.c168 if (!ctx->sdl->types) { in load_schema()
172 if (!ctx->attributes) { in load_schema()
176 if (!ctx->attributeGroups) { in load_schema()
279 schema_attributeGroup(ctx->sdl, tns, trav, NULL, ctx); in load_schema()
283 schema_attribute(ctx->sdl, tns, trav, NULL, ctx); in load_schema()
2291 sdlPtr sdl = ctx->sdl; in schema_pass2()
2295 if (ctx->attributes) { in schema_pass2()
2302 if (ctx->attributeGroups) { in schema_pass2()
2330 if (ctx->attributes) { in schema_pass2()
2332 efree(ctx->attributes); in schema_pass2()
[all …]
/PHP-5.6/ext/standard/tests/http/
H A Dbug69337.phpt21 $ctx = stream_context_create();
22 stream_context_set_params($ctx, array("notification" => "stream_notification_callback"));
31 $f = file_get_contents('http://127.0.0.1:22345/', 0, $ctx);
H A Dbug75981.phpt18 $ctx = stream_context_create($options);
25 echo @file_get_contents('http://127.0.0.1:12342/', false, $ctx);
/PHP-5.6/ext/soap/tests/bugs/
H A Dbug46427.phpt10 $ctx = stream_context_create();
12 'stream_context' => $ctx,
/PHP-5.6/ext/standard/tests/file/
H A Dfopen_variation6.phpt25 $ctx = stream_context_create();
26 $h = fopen($absfile, "r", true, $ctx);
31 $h = fopen($relfile, "r", true, $ctx);

Completed in 98 milliseconds

1234