Mercurial > dovecot > core-2.2
comparison src/lib-ntlm/ntlm-encrypt.h @ 14682:d0d7b810646b
Make sure we check all the functions' return values. Minor API changes to simplify this.
Checked using a patched clang that adds attribute(warn_unused_result) to all
functions. This commit fixes several error handling mistakes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 25 Jun 2012 01:14:03 +0300 |
parents | c93ca5e46a8a |
children |
comparison
equal
deleted
inserted
replaced
14681:ca37d1577291 | 14682:d0d7b810646b |
---|---|
1 #ifndef NTLM_ENCRYPT_H | 1 #ifndef NTLM_ENCRYPT_H |
2 #define NTLM_ENCRYPT_H | 2 #define NTLM_ENCRYPT_H |
3 | 3 |
4 const unsigned char * | 4 void lm_hash(const char *passwd, unsigned char hash[LM_HASH_SIZE]); |
5 lm_hash(const char *passwd, unsigned char hash[LM_HASH_SIZE]); | 5 void ntlm_v1_hash(const char *passwd, unsigned char hash[NTLMSSP_HASH_SIZE]); |
6 | |
7 const unsigned char * | |
8 ntlm_v1_hash(const char *passwd, unsigned char hash[NTLMSSP_HASH_SIZE]); | |
9 | 6 |
10 void ntlmssp_v1_response(const unsigned char *hash, | 7 void ntlmssp_v1_response(const unsigned char *hash, |
11 const unsigned char *challenge, | 8 const unsigned char *challenge, |
12 unsigned char response[NTLMSSP_RESPONSE_SIZE]); | 9 unsigned char response[NTLMSSP_RESPONSE_SIZE]); |
13 | 10 |