0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2009, 2015 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and/or distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * copyright notice and this permission notice appear in all copies.
98922b2b2b024dcca25be7c220cf3b16b1e6c4b5Evan Hunt * THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NETWORK ASSOCIATES DISCLAIMS
98922b2b2b024dcca25be7c220cf3b16b1e6c4b5Evan Hunt * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
98922b2b2b024dcca25be7c220cf3b16b1e6c4b5Evan Hunt * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE
98922b2b2b024dcca25be7c220cf3b16b1e6c4b5Evan Hunt * FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
98922b2b2b024dcca25be7c220cf3b16b1e6c4b5Evan Hunt * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
98922b2b2b024dcca25be7c220cf3b16b1e6c4b5Evan Hunt * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
98922b2b2b024dcca25be7c220cf3b16b1e6c4b5Evan Hunt * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
98922b2b2b024dcca25be7c220cf3b16b1e6c4b5Evan Hunt * Portions copyright (c) 2008 Nominet UK. All rights reserved.
/* $Id: pkcs11-destroy.c,v 1.8 2010/01/13 21:19:52 fdupont Exp $ */
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#ifdef WIN32
errflg++;
errflg++;
if (id) {
} else if (label) {
goto exit_session;
goto exit_search;
if (ulObjectCount == 0) {
goto exit_search;
for (i = 0; i < ulObjectCount; i++) {
i, rv);
goto exit_search;
if (len > 0)
for (j = 0; j < len; j++)
if (wait != 0) {
for (i = 0; i < wait; i++) {
for (i = 0; i < ulObjectCount; i++) {
i, rv);
if (error == 0)
(void) pk11_finalize();