Lines Matching defs:search
98 response(int sock, const int code, const char *search, const int get, char *buf, int cc, const char *out)
108 "Error handling request: No keys found for '%s'\r\n", search);
114 (void) snprintf(item, sizeof(item), "Search results for '%s'", search);
212 char search[BUFSIZ];
223 /* GET /pks/lookup?search=agc%40netbsd.org&op=index&options=mr HTTP/1.1\n */
226 #define SEARCHTERM "search=([^ \t&]+)"
275 (void) fprintf(stderr, "no search term in request\n");
285 search,
286 sizeof(search));
293 if (netpgp_match_keys_json(netpgp, &cp, search, "human", 1)) {
297 } else if ((cp = netpgp_get_key(netpgp, search, fmt)) != NULL) {
301 response(newsock, code, search, 0, cp, cc, fmt);
307 if (netpgp_match_keys_json(netpgp, &cp, search, "human", 0)) {
311 } else if ((cp = netpgp_get_key(netpgp, search, fmt)) != NULL) {
315 response(newsock, code, search, 0, cp, cc, fmt);
317 if ((cp = netpgp_export_key(netpgp, search)) != NULL) {
321 response(newsock, code, search, 1, cp, cc, fmt);