/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
*/
/* $Id: service.c 171 2006-05-20 06:00:32Z njacobs $ */
#pragma ident "%Z%%M% %I% %E% SMI"
/*LINTLIBRARY*/
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <alloca.h>
#include <libintl.h>
#include <papi_impl.h>
#include <config-site.h>
{
switch (encryption) {
return (HTTP_ENCRYPT_IF_REQUESTED);
case PAPI_ENCRYPT_REQUIRED:
return (HTTP_ENCRYPT_REQUIRED);
case PAPI_ENCRYPT_ALWAYS:
return (HTTP_ENCRYPT_ALWAYS);
case PAPI_ENCRYPT_NEVER:
return (HTTP_ENCRYPT_NEVER);
default:
; /* this should log an error */
}
return (HTTP_ENCRYPT_NEVER); /* should never get here */
}
{
return (PAPI_BAD_ARGUMENT);
return (PAPI_OK);
/*
* a name was supplied and it's not in URI form, we will
* try to use a "default" IPP service under the assumption
* that this is most likely a short-form printer name from
* from a papiPrinter*() or papiJob*() call and not from a
* papiServiceCreate() call.
*/
char *cups;
}
}
if (service_name == NULL)
}
return (PAPI_NOT_POSSIBLE);
}
} else if (service_name != NULL)
return (result);
}
{
return (PAPI_BAD_ARGUMENT);
return (PAPI_TEMPORARY_ERROR);
else
if (service_name != NULL) {
} else
return (result);
}
void
{
}
}
{
} else
return (result);
}
{
} else
return (result);
}
{
} else
return (result);
}
{
} else
return (result);
}
{
} else
return (result);
}
char *
{
}
return (result);
}
char *
{
}
return (result);
}
char *
{
}
return (result);
}
{
}
return (result);
}
void *
{
}
return (result);
}
{
return (result);
}
char *
{
"detailed-status-message", &result);
return (result);
}
void
{
/*
* fill in the message. If the buffer is too small, allocate
* one that is large enough and fill it in.
*/
"detailed-status-message", message);
}
}