Displaying 1 result from an estimated 1 matches for "i_isxdigit".
Did you mean:
i_isdigit
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...ool_unref(&pool);
+ close(fd);
+ return FALSE;
+ }
+
+ /* modify the keys */
+ switch (action) {
+ case URLAUTH_KEYS_GET:
+ hex = hash_table_lookup(keys, (void *) mailbox);
+
+ /* if hex key is bogus, set a new one */
+ if (hex) {
+ const char *cp;
+ for (cp = hex; *cp; cp++)
+ if (!i_isxdigit(*cp))
+ break;
+ if (*cp == '\0')
+ break; /* good hex */
+ }
+
+ /* if not present, set one -- fall through */
+ case URLAUTH_KEYS_SET:
+ random_fill(new_key, sizeof new_key);
+ hex = binary_to_hex(new_key, sizeof new_key);
+ if (*mailbox) {
+ hash_table_insert(keys, (void...