]> git.ipfire.org Git - thirdparty/cups.git/commit - cgi-bin/var.c
Support the latest HTTP Digest authentication specification (Issue #4862)
authorMichael R Sweet <michaelrsweet@gmail.com>
Mon, 6 Nov 2017 21:19:27 +0000 (16:19 -0500)
committerMichael R Sweet <michaelrsweet@gmail.com>
Mon, 6 Nov 2017 21:28:31 +0000 (16:28 -0500)
commit7ec11630684301572cb7d19a95c244c104961a2a
tree75940c5fb6da6293797bae904c7865433ead08e7
parent054eee9cd0555f836ef9ad87f21d6e6ace1d47f1
Support the latest HTTP Digest authentication specification (Issue #4862)

Also deprecates all httpMD5* functions.

- cgi-bin/var.c: Use cupsHashData to compute SID hash.
- cups/auth.c: Rewrite WWW-Authenticate parser to support multiple auth schemes
  and the new RFC 7616 version of HTTP Digest.
- cups/cups.h: Add cupsHashString function to get a hex version of a hash.
- cups/hash.c: Add MD5 support.
- cups/http.c: Track WWW-Authenticate in a long string, concatenate new set
  values.
- cups/http.h: Deprecate httpMD5* and recommend cupsDoAuth and cupsHash*.
- cups/http-private.h: Pull MD5 stuff, nonce_count is unsigned, track
  WWW-Authenticate header as a potentially long string.
- cups/http-support.c: Use cupsHashData to compute UUID hash.
- cups/md5.c: Comment everything out if we have an OS-supplied MD5 hash
  function.
- cups/md5passwd.c: Use cupsHash* functions.
- cups/tls-*.c: Use cupsHash* functions.
- cups/versioning.h: Add CUPS_API_2_3 definition.
- scheduler/client.c: Update WWW-Authenticate header to include AuthRef,
  Local, and PeerCred schemes with parameters as needed.
16 files changed:
CHANGES.md
cgi-bin/var.c
cups/auth.c
cups/cups.h
cups/hash.c
cups/http-private.h
cups/http-support.c
cups/http.c
cups/http.h
cups/md5.c
cups/md5passwd.c
cups/tls-darwin.c
cups/tls-gnutls.c
cups/tls-sspi.c
cups/versioning.h
scheduler/client.c