Lines Matching refs:options
175 if (vio->data->options.timeout_connect) { in MYSQLND_METHOD()
176 tv.tv_sec = vio->data->options.timeout_connect; in MYSQLND_METHOD()
182 hashed_details, (vio->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
250 if (vio->data->options.timeout_read) { in MYSQLND_METHOD()
252 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", vio->data->options.timeout_read); in MYSQLND_METHOD()
253 tv.tv_sec = vio->data->options.timeout_read; in MYSQLND_METHOD()
265 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=%zu", 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()
499 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
501 ZVAL_STRING(&key_zval, net->data->options.ssl_key); in MYSQLND_METHOD()
506 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
508 ZVAL_STRING(&cert_zval, net->data->options.ssl_cert); in MYSQLND_METHOD()
510 if (!net->data->options.ssl_key) { in MYSQLND_METHOD()
516 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
518 ZVAL_STRING(&cafile_zval, net->data->options.ssl_ca); in MYSQLND_METHOD()
523 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
525 ZVAL_STRING(&capath_zval, net->data->options.ssl_capath); in MYSQLND_METHOD()
530 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
532 ZVAL_STRING(&passphrase_zval, net->data->options.ssl_passphrase); in MYSQLND_METHOD()
537 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
539 ZVAL_STRING(&cipher_zval, net->data->options.ssl_cipher); in MYSQLND_METHOD()
548 if (net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_DEFAULT) { in MYSQLND_METHOD()
549 …net->data->options.ssl_verify_peer = any_flag? MYSQLND_SSL_PEER_DEFAULT_ACTION:MYSQLND_SSL_PEER_DO… in MYSQLND_METHOD()
552 verify = net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_VERIFY? TRUE:FALSE; in MYSQLND_METHOD()
558 if (net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_DONT_VERIFY) { in MYSQLND_METHOD()
584 if (net->data->options.timeout_read) { in MYSQLND_METHOD()
586 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->data->options.timeout_read); in MYSQLND_METHOD()
587 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
619 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
620 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
621 net->data->options.ssl_key = NULL; in MYSQLND_METHOD()
623 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
624 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
625 net->data->options.ssl_cert = NULL; in MYSQLND_METHOD()
627 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
628 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
629 net->data->options.ssl_ca = NULL; in MYSQLND_METHOD()
631 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
632 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
633 net->data->options.ssl_capath = NULL; in MYSQLND_METHOD()
635 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
636 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
637 net->data->options.ssl_cipher = NULL; in MYSQLND_METHOD()