search for: t_base64_decode_str

Displaying 2 results from an estimated 2 matches for "t_base64_decode_str".

2020 Oct 15
2
how to set smtp-client -> submission_relay_host for IPv4 only?
On 10/15/20 2:02 PM, jeremy ardley wrote: >> how/where do I configure (just) the dovecot smtp-client -> submission_relay_host to only connect IPv4? > > It appears your host has A and AAAA records in your DNS. The clients will try IPV6 first if they see an AAAA record. > > If you don't need IPV6 for your host remove the AAAA record. All connections will then only use
2012 Oct 02
2
[PATCH] Add SCRAM-SHA-1 password scheme
...unsigned char *salt; + size_t salt_len; + unsigned char salted_password[SHA1_RESULTLEN]; + unsigned char client_key[SHA1_RESULTLEN]; + unsigned char stored_key[SHA1_RESULTLEN]; + + fields = t_strsplit(t_strndup(raw_password, size), ","); + iter = atoi(fields[0]); + salt = buffer_get_data(t_base64_decode_str(fields[1]), &salt_len); + str = t_str_new(strlen(fields[2])); + + /* FIXME: credentials should be SASLprepped UTF8 data here */ + Hi((const unsigned char *)plaintext, strlen(plaintext), salt, salt_len, + iter, salted_password); + + /* Calculate ClientKey */ + hmac_init(&ctx, salted_passw...