Searched refs:salt_length_str (Results 1 – 2 of 2) sorted by relevance
131 int salt_length_str; in ldns_str2rdf_nsec3_salt() local139 salt_length_str = (int)strlen(salt_str); in ldns_str2rdf_nsec3_salt()140 if (salt_length_str == 1 && salt_str[0] == '-') { in ldns_str2rdf_nsec3_salt()141 salt_length_str = 0; in ldns_str2rdf_nsec3_salt()142 } else if (salt_length_str % 2 != 0) { in ldns_str2rdf_nsec3_salt()145 if (salt_length_str > 512) { in ldns_str2rdf_nsec3_salt()149 salt = LDNS_XMALLOC(uint8_t, salt_length_str / 2); in ldns_str2rdf_nsec3_salt()153 for (c = 0; c < salt_length_str; c += 2) { in ldns_str2rdf_nsec3_salt()162 salt_length = (uint8_t) (salt_length_str / 2); in ldns_str2rdf_nsec3_salt()
2659 int i, salt_length_str = (int)strlen(str); in sldns_str2wire_nsec3_salt_buf() local2660 if (salt_length_str == 1 && str[0] == '-') { in sldns_str2wire_nsec3_salt_buf()2661 salt_length_str = 0; in sldns_str2wire_nsec3_salt_buf()2662 } else if (salt_length_str % 2 != 0) { in sldns_str2wire_nsec3_salt_buf()2665 if (salt_length_str > 512) in sldns_str2wire_nsec3_salt_buf()2667 if(*len < 1+(size_t)salt_length_str / 2) in sldns_str2wire_nsec3_salt_buf()2669 rd[0] = (uint8_t) (salt_length_str / 2); in sldns_str2wire_nsec3_salt_buf()2670 for (i = 0; i < salt_length_str; i += 2) { in sldns_str2wire_nsec3_salt_buf()