]>
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 * These coded instructions, statements, and computer programs are the
11 * property of Apple Inc. and are protected by Federal copyright
12 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
13 * which should have been included with this file. If this file is
14 * missing or damaged, see the license at "http://www.cups.org/".
16 * This file is subject to the Apple OS-Developed Software exception.
20 * Include necessary headers...
23 #include "cups-private.h"
30 # include <sys/time.h>
31 # include <sys/resource.h>
35 #endif /* HAVE_POLL */
39 * Include platform-specific TLS code...
44 # include "tls-gnutls.c"
45 # elif defined(HAVE_CDSASSL)
46 # include "tls-darwin.c"
47 # elif defined(HAVE_SSPISSL)
48 # include "tls-sspi.c"
49 # endif /* HAVE_GNUTLS */
51 /* Stubs for when TLS is not supported/available */
53 httpCopyCredentials(http_t
*http
, cups_array_t
**credentials
)
61 httpCredentialsAreValidForName(cups_array_t
*credentials
, const char *common_name
)
68 httpCredentialsGetExpiration(cups_array_t
*credentials
)
74 httpCredentialsGetTrust(cups_array_t
*credentials
, const char *common_name
)
78 return (HTTP_TRUST_OK
);
81 httpCredentialsString(cups_array_t
*credentials
, char *buffer
, size_t bufsize
)
90 httpLoadCredentials(const char *path
, cups_array_t
**credentials
, const char *common_name
)
98 httpSaveCredentials(const char *path
, cups_array_t
*credentials
, const char *common_name
)
105 #endif /* HAVE_SSL */