Blame tests/pkcs11/pkcs11-mock-ext.h

Packit Service 4684c1
/*
Packit Service 4684c1
 * Copyright (C) 2016 Red Hat, Inc.
Packit Service 4684c1
 *
Packit Service 4684c1
 * Author: Nikos Mavrogiannopoulos
Packit Service 4684c1
 *
Packit Service 4684c1
 * This file is part of GnuTLS.
Packit Service 4684c1
 *
Packit Service 4684c1
 * GnuTLS is free software; you can redistribute it and/or modify it
Packit Service 4684c1
 * under the terms of the GNU General Public License as published by
Packit Service 4684c1
 * the Free Software Foundation; either version 3 of the License, or
Packit Service 4684c1
 * (at your option) any later version.
Packit Service 4684c1
 *
Packit Service 4684c1
 * GnuTLS is distributed in the hope that it will be useful, but
Packit Service 4684c1
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 4684c1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 4684c1
 * General Public License for more details.
Packit Service 4684c1
 *
Packit Service 4684c1
 * You should have received a copy of the GNU General Public License
Packit Service 4684c1
 * along with GnuTLS; if not, write to the Free Software Foundation,
Packit Service 4684c1
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Packit Service 4684c1
 */
Packit Service 4684c1
Packit Service 4684c1
#ifndef PKCS11_MOCK_EXT_H
Packit Service 4684c1
# define PKCS11_MOCK_EXT_H
Packit Service 4684c1
Packit Service 4684c1
/* This flag instructs the module to return CKR_OK on sensitive
Packit Service 4684c1
 * objects */
Packit Service 4684c1
#define MOCK_FLAG_BROKEN_GET_ATTRIBUTES 1
Packit Service 4684c1
#define MOCK_FLAG_ALWAYS_AUTH (1<<1)
Packit Service 4684c1
/* simulate the safenet HSMs always auth behavior */
Packit Service 4684c1
#define MOCK_FLAG_SAFENET_ALWAYS_AUTH (1<<2)
Packit Service 4684c1
Packit Service 4684c1
#endif