Home
last modified time | relevance | path

Searched refs:hexstr (Results 1 – 11 of 11) sorted by relevance

/openbsd-src/usr.bin/snmp/
H A Dsnmpc.c1324 snmpc_hex2bin(char *hexstr, size_t *binlen) in snmpc_hex2bin() argument
1328 if (hexstr[0] == '0' && hexstr[1] == 'x') in snmpc_hex2bin()
1329 hexstr += 2; in snmpc_hex2bin()
1330 while (hexstr[0] == ' ' || hexstr[0] == '\t') in snmpc_hex2bin()
1331 hexstr++; in snmpc_hex2bin()
1333 if ((decstr = malloc((strlen(hexstr) / 2) + 1)) == NULL) in snmpc_hex2bin()
1336 for (*binlen = 0; hexstr[0] != '\0'; (*binlen)++) { in snmpc_hex2bin()
1337 hexstr[0] = toupper(hexstr[0]); in snmpc_hex2bin()
1338 hexstr[1] = toupper(hexstr[1]); in snmpc_hex2bin()
1339 if (hexstr[0] >= '0' && hexstr[0] <= '9') in snmpc_hex2bin()
[all …]
/openbsd-src/usr.sbin/rpki-client/
H A Dencoding.c198 hex_decode(const char *hexstr, char *buf, size_t len) in hex_decode() argument
204 while (*hexstr) { in hex_decode()
207 ch = hexstr[i]; in hex_decode()
225 hexstr += 2; in hex_decode()
/openbsd-src/gnu/llvm/lldb/packages/Python/lldbsuite/support/
H A Dseven.py30 def unhexlify(hexstr): argument
32 return bitcast_to_string(binascii.unhexlify(hexstr))
/openbsd-src/usr.sbin/radiusctl/
H A Dradiusctl.c79 static const char *hexstr(const u_char *, int, char *, int);
525 (hexstr(buf, len, buf1, sizeof(buf1))) in radius_dump()
533 (hexstr(buf, len, buf1, sizeof(buf1))) in radius_dump()
541 (hexstr(buf, len, buf1, sizeof(buf1))) in radius_dump()
549 (hexstr(buf, len, buf1, sizeof(buf1))) in radius_dump()
573 (hexstr(buf, len, buf1, sizeof(buf1))) in radius_dump()
581 (hexstr(buf, len, buf1, sizeof(buf1))) in radius_dump()
966 hexstr(const u_char *data, int len, char *str, int strsiz) in hexstr()
951 hexstr(const u_char *data, int len, char *str, int strsiz) hexstr() function
/openbsd-src/lib/libcrypto/evp/
H A Dpmeth_lib.c279 EVP_PKEY_CTX_hex2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *hexstr) in EVP_PKEY_CTX_hex2ctrl()
285 if ((hex = string_to_hex(hexstr, &length)) == NULL) in EVP_PKEY_CTX_hex2ctrl()
274 EVP_PKEY_CTX_hex2ctrl(EVP_PKEY_CTX * ctx,int cmd,const char * hexstr) EVP_PKEY_CTX_hex2ctrl() argument
/openbsd-src/regress/sbin/ifconfig/
H A Difaddr.c868 int len = *lenp, hexstr; in get_string() local
871 hexstr = (val[0] == '0' && tolower((u_char)val[1]) == 'x'); in get_string()
872 if (hexstr) in get_string()
881 if (hexstr) { in get_string()
889 if (hexstr) in get_string()
895 if (hexstr) { in get_string()
/openbsd-src/usr.sbin/radiusd/
H A Dradiusd_eap2mschap.c769 const char hexstr[] = "0123456789abcdef"; in hex_string()
773 buf[j] = hexstr[(bytes[i] & 0xf0) >> 4]; in monotime()
774 buf[j + 1] = hexstr[bytes[i] & 0xf]; in monotime()
758 const char hexstr[] = "0123456789abcdef"; hex_string() local
/openbsd-src/usr.bin/awk/
H A Db.c347 hexstr(const uschar **pp, int max) /* find and eval hex string at pp, return new p */ in hexstr() function
401 c = hexstr(&p, 2); /* this adds a null if number is invalid */ in quoted()
404 c = hexstr(&p, 8); in quoted()
H A DFIXES.1e1168 fixed silly bug in hex parsing in hexstr().
/openbsd-src/usr.sbin/unbound/testcode/
H A Dtestpkts.c319 hexstr2bin(char *hexstr, int len, uint8_t *buf, size_t offset, size_t buf_len) in hexstr2bin() argument
332 c = hexstr[i]; in hexstr2bin()
/openbsd-src/sbin/ifconfig/
H A Difconfig.c1690 int len = *lenp, hexstr; in get_string()
1693 hexstr = (val[0] == '0' && tolower((u_char)val[1]) == 'x'); in get_string()
1694 if (hexstr) in get_string()
1703 if (hexstr) { in get_string()
1711 if (hexstr) in get_string()
1717 if (hexstr) { in get_string()
1689 int len = *lenp, hexstr; get_string() local