Lines Matching refs:options
99 net_stream->chunk_size = MIN(to_read, net->data->options.net_read_buffer_size); in MYSQLND_METHOD()
195 if (net->data->options.timeout_connect) { in MYSQLND_METHOD()
196 tv.tv_sec = net->data->options.timeout_connect; in MYSQLND_METHOD()
202 hashed_details, (net->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
267 if (net->data->options.timeout_read) { in MYSQLND_METHOD()
269 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->data->options.timeout_read); in MYSQLND_METHOD()
270 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
739 net->data->options.net_read_buffer_size = *(unsigned int*) value; in MYSQLND_METHOD()
740 DBG_INF_FMT("new_length="MYSQLND_SZ_T_SPEC, net->data->options.net_read_buffer_size); in MYSQLND_METHOD()
744 net->data->options.timeout_connect = *(unsigned int*) value; in MYSQLND_METHOD()
749 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
750 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
752 net->data->options.ssl_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
758 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
759 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
761 net->data->options.ssl_cert = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
767 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
768 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
770 net->data->options.ssl_ca = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
776 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
777 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
779 net->data->options.ssl_capath = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
785 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
786 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
788 net->data->options.ssl_cipher = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
794 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
795 mnd_pefree(net->data->options.ssl_passphrase, pers); in MYSQLND_METHOD()
797 net->data->options.ssl_passphrase = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
819 net->data->options.ssl_verify_peer = val; in MYSQLND_METHOD()
823 net->data->options.timeout_read = *(unsigned int*) value; in MYSQLND_METHOD()
827 net->data->options.timeout_write = *(unsigned int*) value; in MYSQLND_METHOD()
831 net->data->options.flags |= MYSQLND_NET_FLAG_USE_COMPRESSION; in MYSQLND_METHOD()
836 if (net->data->options.sha256_server_public_key) { in MYSQLND_METHOD()
837 mnd_pefree(net->data->options.sha256_server_public_key, pers); in MYSQLND_METHOD()
839 net->data->options.sha256_server_public_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
915 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
917 ZVAL_STRING(&key_zval, net->data->options.ssl_key, 0); in MYSQLND_METHOD()
921 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
923 ZVAL_STRING(&cert_zval, net->data->options.ssl_cert, 0); in MYSQLND_METHOD()
925 if (!net->data->options.ssl_key) { in MYSQLND_METHOD()
930 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
932 ZVAL_STRING(&cafile_zval, net->data->options.ssl_ca, 0); in MYSQLND_METHOD()
936 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
938 ZVAL_STRING(&capath_zval, net->data->options.ssl_capath, 0); in MYSQLND_METHOD()
942 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
944 ZVAL_STRING(&passphrase_zval, net->data->options.ssl_passphrase, 0); in MYSQLND_METHOD()
948 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
950 ZVAL_STRING(&cipher_zval, net->data->options.ssl_cipher, 0); 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()
992 if (net->data->options.timeout_read) { in MYSQLND_METHOD()
994 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->data->options.timeout_read); in MYSQLND_METHOD()
995 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
1032 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
1033 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
1034 net->data->options.ssl_key = NULL; in MYSQLND_METHOD()
1036 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
1037 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
1038 net->data->options.ssl_cert = NULL; in MYSQLND_METHOD()
1040 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
1041 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
1042 net->data->options.ssl_ca = NULL; in MYSQLND_METHOD()
1044 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
1045 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
1046 net->data->options.ssl_capath = NULL; in MYSQLND_METHOD()
1048 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
1049 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
1050 net->data->options.ssl_cipher = NULL; in MYSQLND_METHOD()
1052 if (net->data->options.sha256_server_public_key) { in MYSQLND_METHOD()
1053 mnd_pefree(net->data->options.sha256_server_public_key, pers); in MYSQLND_METHOD()
1054 net->data->options.sha256_server_public_key = NULL; in MYSQLND_METHOD()