Lines Matching refs:options
176 if (vio->data->options.timeout_connect) { in MYSQLND_METHOD()
177 tv.tv_sec = vio->data->options.timeout_connect; in MYSQLND_METHOD()
183 hashed_details, (vio->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
251 if (vio->data->options.timeout_read) { in MYSQLND_METHOD()
253 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", vio->data->options.timeout_read); in MYSQLND_METHOD()
254 tv.tv_sec = vio->data->options.timeout_read; in MYSQLND_METHOD()
266 net_stream->chunk_size = vio->data->options.net_read_buffer_size; in MYSQLND_METHOD()
333 net->data->options.net_read_buffer_size = *(unsigned int*) value; in MYSQLND_METHOD()
334 DBG_INF_FMT("new_length="MYSQLND_SZ_T_SPEC, net->data->options.net_read_buffer_size); in MYSQLND_METHOD()
338 net->data->options.timeout_connect = *(unsigned int*) value; in MYSQLND_METHOD()
343 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
344 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
346 net->data->options.ssl_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
352 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
353 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
355 net->data->options.ssl_cert = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
361 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
362 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
364 net->data->options.ssl_ca = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
370 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
371 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
373 net->data->options.ssl_capath = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
379 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
380 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
382 net->data->options.ssl_cipher = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
388 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
389 mnd_pefree(net->data->options.ssl_passphrase, pers); in MYSQLND_METHOD()
391 net->data->options.ssl_passphrase = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
413 net->data->options.ssl_verify_peer = val; in MYSQLND_METHOD()
417 net->data->options.timeout_read = *(unsigned int*) value; in MYSQLND_METHOD()
421 net->data->options.timeout_write = *(unsigned int*) value; in MYSQLND_METHOD()
495 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
497 ZVAL_STRING(&key_zval, net->data->options.ssl_key); in MYSQLND_METHOD()
502 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
504 ZVAL_STRING(&cert_zval, net->data->options.ssl_cert); in MYSQLND_METHOD()
506 if (!net->data->options.ssl_key) { in MYSQLND_METHOD()
512 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
514 ZVAL_STRING(&cafile_zval, net->data->options.ssl_ca); in MYSQLND_METHOD()
519 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
521 ZVAL_STRING(&capath_zval, net->data->options.ssl_capath); in MYSQLND_METHOD()
526 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
528 ZVAL_STRING(&passphrase_zval, net->data->options.ssl_passphrase); in MYSQLND_METHOD()
533 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
535 ZVAL_STRING(&cipher_zval, net->data->options.ssl_cipher); in MYSQLND_METHOD()
544 if (net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_DEFAULT) { in MYSQLND_METHOD()
545 …net->data->options.ssl_verify_peer = any_flag? MYSQLND_SSL_PEER_DEFAULT_ACTION:MYSQLND_SSL_PEER_DO… in MYSQLND_METHOD()
548 verify = net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_VERIFY? TRUE:FALSE; in MYSQLND_METHOD()
554 if (net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_DONT_VERIFY) { in MYSQLND_METHOD()
577 if (net->data->options.timeout_read) { in MYSQLND_METHOD()
579 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->data->options.timeout_read); in MYSQLND_METHOD()
580 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
612 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
613 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
614 net->data->options.ssl_key = NULL; in MYSQLND_METHOD()
616 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
617 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
618 net->data->options.ssl_cert = NULL; in MYSQLND_METHOD()
620 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
621 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
622 net->data->options.ssl_ca = NULL; in MYSQLND_METHOD()
624 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
625 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
626 net->data->options.ssl_capath = NULL; in MYSQLND_METHOD()
628 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
629 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
630 net->data->options.ssl_cipher = NULL; in MYSQLND_METHOD()