]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/tls.c
2 * TLS routines for CUPS.
4 * Copyright 2007-2014 by Apple Inc.
5 * Copyright 1997-2007 by Easy Software Products, all rights reserved.
7 * This file contains Kerberos support code, copyright 2006 by
10 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
14 * Include necessary headers...
17 #include "cups-private.h"
24 # include <sys/time.h>
25 # include <sys/resource.h>
29 #endif /* HAVE_POLL */
33 * Include platform-specific TLS code...
38 # include "tls-gnutls.c"
39 # elif defined(HAVE_CDSASSL)
40 # include "tls-darwin.c"
41 # elif defined(HAVE_SSPISSL)
42 # include "tls-sspi.c"
43 # endif /* HAVE_GNUTLS */
45 /* Stubs for when TLS is not supported/available */
47 httpCopyCredentials(http_t
*http
, cups_array_t
**credentials
)
55 httpCredentialsAreValidForName(cups_array_t
*credentials
, const char *common_name
)
62 httpCredentialsGetExpiration(cups_array_t
*credentials
)
68 httpCredentialsGetTrust(cups_array_t
*credentials
, const char *common_name
)
72 return (HTTP_TRUST_OK
);
75 httpCredentialsString(cups_array_t
*credentials
, char *buffer
, size_t bufsize
)
84 httpLoadCredentials(const char *path
, cups_array_t
**credentials
, const char *common_name
)
92 httpSaveCredentials(const char *path
, cups_array_t
*credentials
, const char *common_name
)