Blame usr/lib/icsf_stdll/icsf_config.h
|
Packit |
8681c6 |
/*
|
|
Packit |
8681c6 |
* COPYRIGHT (c) International Business Machines Corp. 2013-2017
|
|
Packit |
8681c6 |
*
|
|
Packit |
8681c6 |
* This program is provided under the terms of the Common Public License,
|
|
Packit |
8681c6 |
* version 1.0 (CPL-1.0). Any use, reproduction or distribution for this
|
|
Packit |
8681c6 |
* software constitutes recipient's acceptance of CPL-1.0 terms which can be
|
|
Packit |
8681c6 |
* found in the file LICENSE file or at
|
|
Packit |
8681c6 |
* https://opensource.org/licenses/cpl1.0.php
|
|
Packit |
8681c6 |
*/
|
|
Packit |
8681c6 |
|
|
Packit |
8681c6 |
#ifndef ICSF_CONFIG_H
|
|
Packit |
8681c6 |
#define ICSF_CONFIG_H
|
|
Packit |
8681c6 |
|
|
Packit |
8681c6 |
#include <limits.h>
|
|
Packit |
8681c6 |
#include "pkcs11types.h"
|
|
Packit |
8681c6 |
#include "icsf.h"
|
|
Packit |
8681c6 |
|
|
Packit |
8681c6 |
#define ICSF_CFG_MECH_SIMPLE 0
|
|
Packit |
8681c6 |
#define ICSF_CFG_MECH_SASL 1
|
|
Packit |
8681c6 |
|
|
Packit |
8681c6 |
/* ICSF specific slot data */
|
|
Packit |
8681c6 |
struct icsf_config {
|
|
Packit |
8681c6 |
char name[ICSF_TOKEN_NAME_LEN + 1];
|
|
Packit |
8681c6 |
char manuf[ICSF_MANUFACTURER_LEN + 1];
|
|
Packit |
8681c6 |
char model[ICSF_MODEL_LEN + 1];
|
|
Packit |
8681c6 |
char serial[ICSF_SERIAL_LEN + 1];
|
|
Packit |
8681c6 |
char uri[PATH_MAX + 1];
|
|
Packit |
8681c6 |
char dn[NAME_MAX + 1];
|
|
Packit |
8681c6 |
char ca_file[PATH_MAX + 1];
|
|
Packit |
8681c6 |
char cert_file[PATH_MAX + 1];
|
|
Packit |
8681c6 |
char key_file[PATH_MAX + 1];
|
|
Packit |
8681c6 |
int mech;
|
|
Packit |
8681c6 |
};
|
|
Packit |
8681c6 |
|
|
Packit |
8681c6 |
CK_RV parse_config_file(const char *conf_name, CK_SLOT_ID slot_id,
|
|
Packit |
8681c6 |
struct icsf_config *data);
|
|
Packit |
8681c6 |
|
|
Packit |
8681c6 |
#endif
|