libnwam_object.c revision 2
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A#include <auth_list.h>
2N/A#include "libnwam_impl.h"
2N/A return (NWAM_INVALID_ARG);
2N/A return (NWAM_NO_MEMORY);
2N/A return (NWAM_SUCCESS);
2N/A return (NWAM_INVALID_ARG);
2N/A return (NWAM_SUCCESS);
2N/A != NETCFG_SUCCESS) {
2N/A != NETCFG_SUCCESS) {
done:
return (NWAM_SUCCESS);
return (NWAM_ENTITY_EXISTS);
return (err);
return (NWAM_NO_MEMORY);
return (NWAM_SUCCESS);
return (NWAM_ENTITY_READ_ONLY);
return (NWAM_INVALID_ARG);
return (NWAM_SUCCESS);
== NWAM_SUCCESS) {
return (NWAM_ENTITY_EXISTS);
!= NWAM_SUCCESS)
return (err);
return (err);
return (NWAM_SUCCESS);
int ret = 0;
return (err);
if (ret != 0)
return (NWAM_SUCCESS);
return (err);
char *keyname;
!= NWAM_SUCCESS)
return (err);
&testhp)) {
case NWAM_ENTITY_NOT_FOUND:
case NWAM_SUCCESS:
!= NETCFG_SUCCESS) {
!= NETCFG_SUCCESS)
if (is_ncu) {
done:
return (NWAM_SUCCESS);
static boolean_t
return (err);
return (NWAM_ENTITY_IN_USE);
goto done;
!= NETCFG_SUCCESS) {
if (is_ncu) {
done:
struct nwam_prop_table_entry *
return (cur);
return (NULL);
const char **descriptionp)
return (NWAM_INVALID_ARG);
return (NWAM_SUCCESS);
return (NWAM_INVALID_ARG);
return (NWAM_SUCCESS);
return (NWAM_INVALID_ARG);
return (NWAM_SUCCESS);
return (NWAM_INVALID_ARG);
return (NWAM_SUCCESS);
struct validate_internal_arg {
const char **errpropp;
void *arg)
!= NWAM_SUCCESS ||
return (err);
return (NWAM_SUCCESS);
return (NWAM_ENTITY_NO_VALUE);
return (NWAM_ENTITY_INVALID_VALUE);
if (numvalues > 0) {
for (i = 0; i < numvalues; i++) {
return (NWAM_ENTITY_TYPE_MISMATCH);
return (err);
return (NWAM_SUCCESS);
const char **errpropp)
0, (int *)&err2);
return (err2);
return (NWAM_SUCCESS);
*numvalues = 0;
return (NWAM_NO_MEMORY);
*numvalues = i;
return (NWAM_SUCCESS);