search for: buffer_free_without_data

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

2004 Aug 09
1
[PATCH] RPA authentication mechanism
...RPA_TIMESTAMP_LEN); + buffer_append(buf, auth->service_timestamp, RPA_TIMESTAMP_LEN); + + /* Realm list */ + buffer_append_c(buf, realms_len >> 8); + buffer_append_c(buf, realms_len & 0xff); + buffer_append(buf, realms, realms_len); + + *size = buffer_get_used_size(buf); + return buffer_free_without_data(buf); +} + +static const char * +mech_rpa_build_token4(struct rpa_auth_request *auth, size_t *size) +{ + unsigned int length = sizeof(rpa_oid) + 17 + 17 + 1; + buffer_t *buf = buffer_create_dynamic(auth->pool, length + 4, 4096); + unsigned char server_response[16]; + + buffer_append_c(buf, ASN1_...
2004 Aug 30
0
[PATCH] NTLM fixes
...ib-ntlm/ntlm-encrypt.c dovecot-cvs/src/lib-ntlm/ntlm-encrypt.c --- dovecot-cvs.vanilla/src/lib-ntlm/ntlm-encrypt.c 2004-07-30 07:01:24.000000000 +0400 +++ dovecot-cvs/src/lib-ntlm/ntlm-encrypt.c 2004-08-29 17:44:45.000000000 +0400 @@ -35,16 +35,6 @@ t_unicode_str(const char *src, int ucase return buffer_free_without_data(wstr); } -static void -ntlmssp_des_encrypt_triad(const unsigned char *hash, - const unsigned char *challenge, - unsigned char *response) -{ - deshash(response, hash, challenge); - deshash(response + 8, hash + 7, challenge); - deshash(response + 16, hash + 14, challenge); -} - const uns...