]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/tls.c
4 * TLS routines for CUPS.
6 * Copyright 2007-2014 by Apple Inc.
7 * Copyright 1997-2007 by Easy Software Products, all rights reserved.
9 * This file contains Kerberos support code, copyright 2006 by
12 * These coded instructions, statements, and computer programs are the
13 * property of Apple Inc. and are protected by Federal copyright
14 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
15 * which should have been included with this file. If this file is
16 * file is missing or damaged, see the license at "http://www.cups.org/".
18 * This file is subject to the Apple OS-Developed Software exception.
22 * Include necessary headers...
25 #include "cups-private.h"
32 # include <sys/time.h>
33 # include <sys/resource.h>
37 #endif /* HAVE_POLL */
46 # include "tls-gnutls.c"
47 # elif defined(HAVE_CDSASSL)
48 # include "tls-darwin.c"
49 # elif defined(HAVE_SSPISSL)
50 # include "tls-sspi.c"
51 # endif /* HAVE_GNUTLS */
53 /* Stubs for when TLS is not supported/available */
55 httpCopyCredentials(http_t
*http
, cups_array_t
**credentials
)
63 httpCredentialsAreValidForName(cups_array_t
*credentials
, const char *common_name
)
70 httpCredentialsGetExpiration(cups_array_t
*credentials
)
76 httpCredentialsGetTrust(cups_array_t
*credentials
, const char *common_name
)
80 return (HTTP_TRUST_OK
);
83 httpCredentialsString(cups_array_t
*credentials
, char *buffer
, size_t bufsize
)
92 httpLoadCredentials(const char *path
, cups_array_t
**credentials
, const char *common_name
)
100 httpSaveCredentials(const char *path
, cups_array_t
*credentials
, const char *common_name
)
107 #endif /* HAVE_SSL */