Lines Matching refs:hnd
103 CURL *hnd; in test() local
111 easy_init(hnd); in test()
112 easy_setopt(hnd, CURLOPT_URL, URL); in test()
113 easy_setopt(hnd, CURLOPT_CONNECTTIMEOUT, 1L); in test()
114 easy_setopt(hnd, CURLOPT_HSTSREADFUNCTION, hstsread); in test()
115 easy_setopt(hnd, CURLOPT_HSTSREADDATA, &st); in test()
116 easy_setopt(hnd, CURLOPT_HSTSWRITEFUNCTION, hstswrite); in test()
117 easy_setopt(hnd, CURLOPT_HSTSWRITEDATA, &st); in test()
118 easy_setopt(hnd, CURLOPT_HSTS_CTRL, CURLHSTS_ENABLE); in test()
119 easy_setopt(hnd, CURLOPT_DEBUGDATA, &libtest_debug_config); in test()
120 easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, libtest_debug_cb); in test()
121 easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in test()
122 res = curl_easy_perform(hnd); in test()
123 curl_easy_cleanup(hnd); in test()
124 hnd = NULL; in test()
130 easy_init(hnd); in test()
131 easy_setopt(hnd, CURLOPT_URL, URL); in test()
132 easy_setopt(hnd, CURLOPT_CONNECTTIMEOUT, 1L); in test()
133 easy_setopt(hnd, CURLOPT_HSTSREADFUNCTION, hstsreadfail); in test()
134 easy_setopt(hnd, CURLOPT_HSTSREADDATA, &st); in test()
135 easy_setopt(hnd, CURLOPT_HSTSWRITEFUNCTION, hstswrite); in test()
136 easy_setopt(hnd, CURLOPT_HSTSWRITEDATA, &st); in test()
137 easy_setopt(hnd, CURLOPT_HSTS_CTRL, CURLHSTS_ENABLE); in test()
138 easy_setopt(hnd, CURLOPT_DEBUGDATA, &libtest_debug_config); in test()
139 easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, libtest_debug_cb); in test()
140 easy_setopt(hnd, CURLOPT_VERBOSE, 1L); in test()
141 res = curl_easy_perform(hnd); in test()
142 curl_easy_cleanup(hnd); in test()
143 hnd = NULL; in test()
147 curl_easy_cleanup(hnd); in test()