fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * Copyright (C) 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * This Source Code Form is subject to the terms of the Mozilla Public
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * License, v. 2.0. If a copy of the MPL was not distributed with this
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * file, You can obtain one at http://mozilla.org/MPL/2.0/.
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * Portions copyright (c) 2008 Nominet UK. All rights reserved.
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * Redistribution and use in source and binary forms, with or without
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * modification, are permitted provided that the following conditions
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * 1. Redistributions of source code must retain the above copyright
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * notice, this list of conditions and the following disclaimer.
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * 2. Redistributions in binary form must reproduce the above copyright
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * notice, this list of conditions and the following disclaimer in the
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * documentation and/or other materials provided with the distribution.
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
fd0ec4bfadb33a1b105cb5c371f748b1a9c95176Danny Mayer * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#ifndef HAVE_CLOCK_GETTIME
#ifndef CLOCK_REALTIME
if (result)
return (result);
return (result);
errflg++;
errflg++;
if (errflg) {
for (i = 0; i < count; i++)
if (ontoken)
goto exit_objects;
for (i = 0; i < count; i++) {
i, rv);
goto exit_objects;
goto exit_objects;
for (i = 0; i < count; i++) {
i, rv);
(void) pk11_finalize();