diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2014-04-23 16:37:05 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2014-04-23 16:37:05 +0000 |
commit | 376d7c6937442c5e7afb8e1f34c8b1d1430d3659 (patch) | |
tree | 8bdeaf4a0671d73868b65753aa414ec2dcd87457 /cups/http.h | |
parent | 6be126d13314f892dfbba512db67e75a76edbdef (diff) | |
download | cups-376d7c6937442c5e7afb8e1f34c8b1d1430d3659.tar.gz |
Wire up most of the certificate validation code for OS X. Still need to
finish the keychain and subject alternate name changes, but we now have the
core validation framework in place.
Also need to decide whether to allow requests to untrusted connections by
default or require all applications to copy and validate manually.
- Updated httpCredentialsAreTrusted to require the common name.
- Implementation of httpCredentialsAreTrusted, httpCredentialsGetExpiration,
httpCredentialsIsValidName, and httpCredentialsString.
- Added display of credential info to testhttp program.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11829 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/http.h')
-rw-r--r-- | cups/http.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cups/http.h b/cups/http.h index a660ca9f9..1e8ed00ea 100644 --- a/cups/http.h +++ b/cups/http.h @@ -614,7 +614,7 @@ extern http_state_t httpWriteResponse(http_t *http, extern int httpAddrClose(http_addr_t *addr, int fd) _CUPS_API_2_0; extern int httpAddrFamily(http_addr_t *addr) _CUPS_API_2_0; extern int httpCompareCredentials(cups_array_t *cred1, cups_array_t *cred2) _CUPS_API_2_0; -extern int httpCredentialsAreTrusted(cups_array_t *credentials) _CUPS_API_2_0; +extern int httpCredentialsAreTrusted(cups_array_t *credentials, const char *common_name) _CUPS_API_2_0; extern time_t httpCredentialsGetExpiration(cups_array_t *credentials) _CUPS_API_2_0; extern int httpCredentialsIsValidName(cups_array_t *credentials, const char *common_name); extern size_t httpCredentialsString(cups_array_t *credentials, char *buffer, size_t bufsize) _CUPS_API_2_0; |