/*
- * "$Id: conf.c,v 1.77.2.18 2003/01/07 18:27:17 mike Exp $"
+ * "$Id: conf.c,v 1.77.2.19 2003/01/15 04:25:54 mike Exp $"
*
* Configuration routines for the Common UNIX Printing System (CUPS).
*
{ "RootCertDuration", &RootCertDuration, VAR_INTEGER, 0 },
{ "ServerAdmin", ServerAdmin, VAR_STRING, sizeof(ServerAdmin) },
{ "ServerBin", ServerBin, VAR_STRING, sizeof(ServerBin) },
-#ifdef HAVE_LIBSSL
+#ifdef HAVE_SSL
{ "ServerCertificate",ServerCertificate, VAR_STRING, sizeof(ServerCertificate) },
{ "ServerKey", ServerKey, VAR_STRING, sizeof(ServerKey) },
-#endif /* HAVE_LIBSSL */
+#endif /* HAVE_SSL */
{ "ServerName", ServerName, VAR_STRING, sizeof(ServerName) },
{ "ServerRoot", ServerRoot, VAR_STRING, sizeof(ServerRoot) },
{ "TempDir", TempDir, VAR_STRING, sizeof(TempDir) },
Classification[0] = '\0';
ClassifyOverride = 0;
-#ifdef HAVE_LIBSSL
+#ifdef HAVE_SSL
strcpy(ServerCertificate, "ssl/server.crt");
strcpy(ServerKey, "ssl/server.key");
-#endif /* HAVE_LIBSSL */
+#endif /* HAVE_SSL */
if ((language = DEFAULT_LANGUAGE) == NULL)
language = "en";
strlcpy(ServerBin, directory, sizeof(ServerBin));
}
-#ifdef HAVE_LIBSSL
+#ifdef HAVE_SSL
if (ServerCertificate[0] != '/')
{
snprintf(directory, sizeof(directory), "%s/%s", ServerRoot, ServerCertificate);
chown(ServerKey, User, Group);
chmod(ServerKey, ConfigFilePerm);
-#endif /* HAVE_LIBSSL */
+#endif /* HAVE_SSL */
/*
* Make sure that ServerRoot and the config files are owned and
LogMessage(L_WARN, "Too many %s directives at line %d.", name,
linenum);
}
-#ifdef HAVE_LIBSSL
+#ifdef HAVE_SSL
else if (strcasecmp(name, "SSLPort") == 0 ||
strcasecmp(name, "SSLListen") == 0)
{
LogMessage(L_WARN, "Too many %s directives at line %d.", name,
linenum);
}
-#endif /* HAVE_LIBSSL */
+#endif /* HAVE_SSL */
else if (strcasecmp(name, "BrowseAddress") == 0)
{
/*
/*
- * End of "$Id: conf.c,v 1.77.2.18 2003/01/07 18:27:17 mike Exp $".
+ * End of "$Id: conf.c,v 1.77.2.19 2003/01/15 04:25:54 mike Exp $".
*/