Lines Matching refs:options
98 net_stream->chunk_size = MIN(to_read, net->data->options.net_read_buffer_size); in MYSQLND_METHOD()
198 if (net->data->options.timeout_connect) { in MYSQLND_METHOD()
199 tv.tv_sec = net->data->options.timeout_connect; in MYSQLND_METHOD()
205 hashed_details, (net->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
274 if (net->data->options.timeout_read) { in MYSQLND_METHOD()
276 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->data->options.timeout_read); in MYSQLND_METHOD()
277 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
746 net->data->options.net_read_buffer_size = *(unsigned int*) value; in MYSQLND_METHOD()
747 DBG_INF_FMT("new_length="MYSQLND_SZ_T_SPEC, net->data->options.net_read_buffer_size); in MYSQLND_METHOD()
751 net->data->options.timeout_connect = *(unsigned int*) value; in MYSQLND_METHOD()
756 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
757 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
759 net->data->options.ssl_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
765 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
766 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
768 net->data->options.ssl_cert = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
774 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
775 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
777 net->data->options.ssl_ca = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
783 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
784 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
786 net->data->options.ssl_capath = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
792 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
793 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
795 net->data->options.ssl_cipher = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
801 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
802 mnd_pefree(net->data->options.ssl_passphrase, pers); in MYSQLND_METHOD()
804 net->data->options.ssl_passphrase = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
826 net->data->options.ssl_verify_peer = val; in MYSQLND_METHOD()
830 net->data->options.timeout_read = *(unsigned int*) value; in MYSQLND_METHOD()
834 net->data->options.timeout_write = *(unsigned int*) value; in MYSQLND_METHOD()
838 net->data->options.flags |= MYSQLND_NET_FLAG_USE_COMPRESSION; in MYSQLND_METHOD()
843 if (net->data->options.sha256_server_public_key) { in MYSQLND_METHOD()
844 mnd_pefree(net->data->options.sha256_server_public_key, pers); in MYSQLND_METHOD()
846 net->data->options.sha256_server_public_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
922 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
924 ZVAL_STRING(&key_zval, net->data->options.ssl_key); in MYSQLND_METHOD()
929 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
931 ZVAL_STRING(&cert_zval, net->data->options.ssl_cert); in MYSQLND_METHOD()
933 if (!net->data->options.ssl_key) { in MYSQLND_METHOD()
939 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
941 ZVAL_STRING(&cafile_zval, net->data->options.ssl_ca); in MYSQLND_METHOD()
945 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
947 ZVAL_STRING(&capath_zval, net->data->options.ssl_capath); in MYSQLND_METHOD()
952 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
954 ZVAL_STRING(&passphrase_zval, net->data->options.ssl_passphrase); in MYSQLND_METHOD()
959 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
961 ZVAL_STRING(&cipher_zval, net->data->options.ssl_cipher); in MYSQLND_METHOD()
970 if (net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_DEFAULT) { in MYSQLND_METHOD()
971 …net->data->options.ssl_verify_peer = any_flag? MYSQLND_SSL_PEER_DEFAULT_ACTION:MYSQLND_SSL_PEER_DO… in MYSQLND_METHOD()
974 verify = net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_VERIFY? TRUE:FALSE; in MYSQLND_METHOD()
980 if (net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_DONT_VERIFY) { in MYSQLND_METHOD()
1011 if (net->data->options.timeout_read) { in MYSQLND_METHOD()
1013 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->data->options.timeout_read); in MYSQLND_METHOD()
1014 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
1051 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
1052 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
1053 net->data->options.ssl_key = NULL; in MYSQLND_METHOD()
1055 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
1056 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
1057 net->data->options.ssl_cert = NULL; in MYSQLND_METHOD()
1059 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
1060 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
1061 net->data->options.ssl_ca = NULL; in MYSQLND_METHOD()
1063 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
1064 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
1065 net->data->options.ssl_capath = NULL; in MYSQLND_METHOD()
1067 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
1068 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
1069 net->data->options.ssl_cipher = NULL; in MYSQLND_METHOD()
1071 if (net->data->options.sha256_server_public_key) { in MYSQLND_METHOD()
1072 mnd_pefree(net->data->options.sha256_server_public_key, pers); in MYSQLND_METHOD()
1073 net->data->options.sha256_server_public_key = NULL; in MYSQLND_METHOD()