summaryrefslogtreecommitdiff
path: root/src/ne_md5.h
Commit message (Collapse)AuthorAgeFilesLines
* * src/ne_md5.h: Allow ne_md5_create_ctx to return NULL.joe2016-09-101-1/+3
| | | | | | | | | | | * src/ne_auth.c (auth_register): Disable Digest support without MD5 support. * test/auth.c (make_digest): Don't crash in above case. * test/util-tests.c (digest_md5, md5_alignment): Likewise. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1970 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_utils.h, src/ne_md5.h, src/ne_compress.h: Docs updates;joe2007-07-161-3/+9
| | | | | | | use extern-C everywhere. No functional changes. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1205 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Move to opaque MD5 context, avoiding exposure of md5_uint32 type:joe2006-03-011-63/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/ne_md5.h: Make struct ne_md5_ctx opaque. (ne_md5_create_ctx, ne_md5_reset_ctx, ne_md5_destroy_ctx): New prototypes. (ne_md5_init_ctx): Removed prototype. * src/ne_md5.c: Add struct ne_md5_ctx definition; use simpler autoconf-based md5_uint32 definition. (ne_md5_create_ctx, ne_md5_destroy_ctx, ne_md5_reset_ctx): New functions. (ne_md5_init_ctx): Make static. * src/ne_auth.c (auth_session): Store a pointer to the MD5 context. (clean_session): Destroy stored MD5 context if necessary. (get_cnonce, digest_challenge, request_digest, verify_digest_response): Adjust to use opaque context constructor/destructor. * test/auth.c (make_digest): Adjust likewise. * test/util-test.c (digest_md5, md5_alignment): Adjust likewise. * config.hw.in: Define SIZEOF_INT, SIZEOF_LONG. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@970 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* * src/ne_md5.h: Remove support for non-C89 prototypes.joe2006-02-281-15/+8
| | | | git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@969 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Avoid most issues with misaligned md5 result buffers:joe2006-02-281-0/+6
| | | | | | | | | | | | | * src/ne_md5.c (ne_md5_finish_ascii): New function. * src/ne_md5.h (ne_md5_finish_ascii): Add prototype. * src/ne_auth.c (get_cnonce, digest_challenge, request_digest, verify_digest_response): Use ne_md5_finish_ascii in place of ne_md5_finish_ctx/ne_md5_to_ascii. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@967 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
* Import neon 0.24.0 to begin 0.24.x branch.joe2004-10-021-0/+144
git-svn-id: http://svn.webdav.org/repos/projects/neon/branches/0.24.x@243 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845