Lines Matching refs:options

89 	net_stream->chunk_size = MIN(to_read, vio->data->options.net_read_buffer_size);  in MYSQLND_METHOD()
179 if (vio->data->options.timeout_connect) { in MYSQLND_METHOD()
180 tv.tv_sec = vio->data->options.timeout_connect; in MYSQLND_METHOD()
186 hashed_details, (vio->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
254 if (vio->data->options.timeout_read) { in MYSQLND_METHOD()
256 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", vio->data->options.timeout_read); in MYSQLND_METHOD()
257 tv.tv_sec = vio->data->options.timeout_read; in MYSQLND_METHOD()
334 net->data->options.net_read_buffer_size = *(unsigned int*) value; in MYSQLND_METHOD()
335 DBG_INF_FMT("new_length="MYSQLND_SZ_T_SPEC, net->data->options.net_read_buffer_size); in MYSQLND_METHOD()
339 net->data->options.timeout_connect = *(unsigned int*) value; in MYSQLND_METHOD()
344 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
345 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
347 net->data->options.ssl_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
353 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
354 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
356 net->data->options.ssl_cert = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
362 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
363 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
365 net->data->options.ssl_ca = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
371 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
372 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
374 net->data->options.ssl_capath = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
380 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
381 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
383 net->data->options.ssl_cipher = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
389 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
390 mnd_pefree(net->data->options.ssl_passphrase, pers); in MYSQLND_METHOD()
392 net->data->options.ssl_passphrase = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
414 net->data->options.ssl_verify_peer = val; in MYSQLND_METHOD()
418 net->data->options.timeout_read = *(unsigned int*) value; in MYSQLND_METHOD()
422 net->data->options.timeout_write = *(unsigned int*) value; in MYSQLND_METHOD()
496 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
498 ZVAL_STRING(&key_zval, net->data->options.ssl_key); in MYSQLND_METHOD()
503 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
505 ZVAL_STRING(&cert_zval, net->data->options.ssl_cert); in MYSQLND_METHOD()
507 if (!net->data->options.ssl_key) { in MYSQLND_METHOD()
513 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
515 ZVAL_STRING(&cafile_zval, net->data->options.ssl_ca); in MYSQLND_METHOD()
520 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
522 ZVAL_STRING(&capath_zval, net->data->options.ssl_capath); in MYSQLND_METHOD()
527 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
529 ZVAL_STRING(&passphrase_zval, net->data->options.ssl_passphrase); in MYSQLND_METHOD()
534 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
536 ZVAL_STRING(&cipher_zval, net->data->options.ssl_cipher); in MYSQLND_METHOD()
545 if (net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_DEFAULT) { in MYSQLND_METHOD()
546 …net->data->options.ssl_verify_peer = any_flag? MYSQLND_SSL_PEER_DEFAULT_ACTION:MYSQLND_SSL_PEER_DO… in MYSQLND_METHOD()
549 verify = net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_VERIFY? TRUE:FALSE; in MYSQLND_METHOD()
555 if (net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_DONT_VERIFY) { in MYSQLND_METHOD()
578 if (net->data->options.timeout_read) { in MYSQLND_METHOD()
580 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->data->options.timeout_read); in MYSQLND_METHOD()
581 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
613 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
614 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
615 net->data->options.ssl_key = NULL; in MYSQLND_METHOD()
617 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
618 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
619 net->data->options.ssl_cert = NULL; in MYSQLND_METHOD()
621 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
622 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
623 net->data->options.ssl_ca = NULL; in MYSQLND_METHOD()
625 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
626 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
627 net->data->options.ssl_capath = NULL; in MYSQLND_METHOD()
629 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
630 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
631 net->data->options.ssl_cipher = NULL; in MYSQLND_METHOD()