Lines Matching refs:options
97 net_stream->chunk_size = MIN(to_read, net->data->options.net_read_buffer_size); in MYSQLND_METHOD()
189 if (net->data->options.timeout_connect) { in MYSQLND_METHOD()
190 tv.tv_sec = net->data->options.timeout_connect; in MYSQLND_METHOD()
196 hashed_details, (net->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
265 if (net->data->options.timeout_read) { in MYSQLND_METHOD()
267 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->data->options.timeout_read); in MYSQLND_METHOD()
268 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
737 net->data->options.net_read_buffer_size = *(unsigned int*) value; in MYSQLND_METHOD()
738 DBG_INF_FMT("new_length="MYSQLND_SZ_T_SPEC, net->data->options.net_read_buffer_size); in MYSQLND_METHOD()
742 net->data->options.timeout_connect = *(unsigned int*) value; in MYSQLND_METHOD()
747 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
748 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
750 net->data->options.ssl_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
756 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
757 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
759 net->data->options.ssl_cert = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
765 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
766 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
768 net->data->options.ssl_ca = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
774 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
775 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
777 net->data->options.ssl_capath = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
783 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
784 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
786 net->data->options.ssl_cipher = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
792 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
793 mnd_pefree(net->data->options.ssl_passphrase, pers); in MYSQLND_METHOD()
795 net->data->options.ssl_passphrase = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
817 net->data->options.ssl_verify_peer = val; in MYSQLND_METHOD()
822 net->data->options.timeout_read = *(unsigned int*) value; in MYSQLND_METHOD()
826 net->data->options.timeout_write = *(unsigned int*) value; in MYSQLND_METHOD()
829 net->data->options.flags |= MYSQLND_NET_FLAG_USE_COMPRESSION; in MYSQLND_METHOD()
834 if (net->data->options.sha256_server_public_key) { in MYSQLND_METHOD()
835 mnd_pefree(net->data->options.sha256_server_public_key, pers); in MYSQLND_METHOD()
837 net->data->options.sha256_server_public_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
910 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
912 ZVAL_STRING(&key_zval, net->data->options.ssl_key); in MYSQLND_METHOD()
917 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
919 ZVAL_STRING(&cert_zval, net->data->options.ssl_cert); in MYSQLND_METHOD()
921 if (!net->data->options.ssl_key) { in MYSQLND_METHOD()
927 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
929 ZVAL_STRING(&cafile_zval, net->data->options.ssl_ca); in MYSQLND_METHOD()
933 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
935 ZVAL_STRING(&capath_zval, net->data->options.ssl_capath); in MYSQLND_METHOD()
940 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
942 ZVAL_STRING(&passphrase_zval, net->data->options.ssl_passphrase); in MYSQLND_METHOD()
947 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
949 ZVAL_STRING(&cipher_zval, net->data->options.ssl_cipher); in MYSQLND_METHOD()
958 if (net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_DEFAULT) { in MYSQLND_METHOD()
959 …net->data->options.ssl_verify_peer = any_flag? MYSQLND_SSL_PEER_DEFAULT_ACTION:MYSQLND_SSL_PEER_DO… in MYSQLND_METHOD()
962 verify = net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_VERIFY? TRUE:FALSE; in MYSQLND_METHOD()
968 if (net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_DONT_VERIFY) { in MYSQLND_METHOD()
991 if (net->data->options.timeout_read) { in MYSQLND_METHOD()
993 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->data->options.timeout_read); in MYSQLND_METHOD()
994 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
1031 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
1032 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
1033 net->data->options.ssl_key = NULL; in MYSQLND_METHOD()
1035 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
1036 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
1037 net->data->options.ssl_cert = NULL; in MYSQLND_METHOD()
1039 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
1040 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
1041 net->data->options.ssl_ca = NULL; in MYSQLND_METHOD()
1043 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
1044 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
1045 net->data->options.ssl_capath = NULL; in MYSQLND_METHOD()
1047 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
1048 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
1049 net->data->options.ssl_cipher = NULL; in MYSQLND_METHOD()
1051 if (net->data->options.sha256_server_public_key) { in MYSQLND_METHOD()
1052 mnd_pefree(net->data->options.sha256_server_public_key, pers); in MYSQLND_METHOD()
1053 net->data->options.sha256_server_public_key = NULL; in MYSQLND_METHOD()