]>
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"
18 #include "debug-internal.h"
25 # include <sys/time.h>
26 # include <sys/resource.h>
30 #endif /* HAVE_POLL */
34 * Include platform-specific TLS code...
39 # include "tls-gnutls.c"
40 # elif defined(HAVE_CDSASSL)
41 # include "tls-darwin.c"
42 # elif defined(HAVE_SSPISSL)
43 # include "tls-sspi.c"
44 # endif /* HAVE_GNUTLS */
46 /* Stubs for when TLS is not supported/available */
48 httpCopyCredentials(http_t
*http
, cups_array_t
**credentials
)
56 httpCredentialsAreValidForName(cups_array_t
*credentials
, const char *common_name
)
63 httpCredentialsGetExpiration(cups_array_t
*credentials
)
69 httpCredentialsGetTrust(cups_array_t
*credentials
, const char *common_name
)
73 return (HTTP_TRUST_OK
);
76 httpCredentialsString(cups_array_t
*credentials
, char *buffer
, size_t bufsize
)
85 httpLoadCredentials(const char *path
, cups_array_t
**credentials
, const char *common_name
)
93 httpSaveCredentials(const char *path
, cups_array_t
*credentials
, const char *common_name
)
100 #endif /* HAVE_SSL */