bump libheimntlm to the version from OSX 10.9 Mavericks

This commit is contained in:
Love Hörnquist Åstrand
2013-11-17 13:15:55 +01:00
parent 22a5077835
commit cde59c543d
8 changed files with 1436 additions and 348 deletions

View File

@@ -1,3 +1,8 @@
#ifdef __cplusplus
extern "C" {
#endif
/*
* Generate challange for APOP and CRAM-MD5
*/
@@ -24,7 +29,7 @@ typedef struct heim_HMAC_MD5_STATE_s {
uint32_t ostate[4];
} heim_CRAM_MD5_STATE;
typedef struct heim_cram_md5 *heim_cram_md5;
typedef struct heim_cram_md5_data *heim_cram_md5;
char *
heim_cram_md5_create(const char *challenge, const char *password);
@@ -56,7 +61,6 @@ heim_cram_md5_free(heim_cram_md5 ctx);
* response = read_from_client();
*
* heim_digest_parse_response(d, response);
*
* const char *user = heim_digest_get_key(d, "username");
* heim_digest_set_key(d, "password", "sommar17");
*
@@ -74,8 +78,15 @@ heim_digest_create(int server, int type);
#define HEIM_DIGEST_TYPE_AUTO 0
#define HEIM_DIGEST_TYPE_RFC2069 1
#define HEIM_DIGEST_TYPE_RFC2617_MD5 2
#define HEIM_DIGEST_TYPE_RFC2617_MD5_SESS 4
#define HEIM_DIGEST_TYPE_RFC2831 8
#define HEIM_DIGEST_TYPE_RFC2617_OR_RFC2831 12
/* old deprecated names, use the two above instead */
#define HEIM_DIGEST_TYPE_MD5 2
#define HEIM_DIGEST_TYPE_MD5_SESS 3
#define HEIM_DIGEST_TYPE_MD5_SESS 4
void
heim_digest_init_set_key(heim_digest_t context, const char *key, const char *value);
@@ -105,10 +116,20 @@ int
heim_digest_verify(heim_digest_t context, char **response);
const char *
heim_digest_create_response(heim_digest_t context);
heim_digest_create_response(heim_digest_t context, char **response);
void
heim_digest_get_session_key(heim_digest_t context, void **key, size_t *keySize);
void
heim_digest_release(heim_digest_t context);
char *
heim_digest_userhash(const char *user, const char *realm, const char *password);
const char *
heim_digest_server_response(heim_digest_t context);
#ifdef __cplusplus
}
#endif