/usr/include/ykneomgr/ykneomgr.h is in libykneomgr-dev 0.1.6-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | /*
* Copyright (C) 2013-2014 Yubico AB
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef YKNEOMGR_H
#define YKNEOMGR_H
#include <stdint.h>
#include <string.h>
#include <ykneomgr/ykneomgr-version.h>
#include <ykneomgr/ykneomgr-types.h>
#ifdef __cplusplus
extern "C"
{
#endif
/* Must be called successfully before using any other functions. */
extern ykneomgr_rc ykneomgr_global_init (ykneomgr_initflags flags);
extern void ykneomgr_global_done (void);
extern const char *ykneomgr_strerror (int err);
extern const char *ykneomgr_strerror_name (int err);
extern ykneomgr_rc ykneomgr_init (ykneomgr_dev ** dev);
extern void ykneomgr_done (ykneomgr_dev * dev);
extern ykneomgr_rc ykneomgr_list_devices (ykneomgr_dev * dev,
char *devicestr, size_t * len);
extern ykneomgr_rc ykneomgr_connect (ykneomgr_dev * dev, const char *name);
extern ykneomgr_rc ykneomgr_discover (ykneomgr_dev * dev);
extern ykneomgr_rc ykneomgr_discover_match (ykneomgr_dev * dev,
const char *match);
extern uint8_t ykneomgr_get_version_major (ykneomgr_dev * dev);
extern uint8_t ykneomgr_get_version_minor (ykneomgr_dev * dev);
extern uint8_t ykneomgr_get_version_build (ykneomgr_dev * dev);
extern uint8_t ykneomgr_get_mode (ykneomgr_dev * dev);
extern uint32_t ykneomgr_get_serialno (ykneomgr_dev * dev);
extern ykneomgr_rc ykneomgr_modeswitch (ykneomgr_dev * dev, uint8_t mode);
extern ykneomgr_rc ykneomgr_authenticate (ykneomgr_dev * dev,
const uint8_t * key);
extern ykneomgr_rc ykneomgr_applet_list (ykneomgr_dev * dev,
char *appletstr, size_t * len);
extern ykneomgr_rc ykneomgr_applet_delete (ykneomgr_dev * dev,
const uint8_t * aid,
size_t aidlen);
extern ykneomgr_rc ykneomgr_applet_install (ykneomgr_dev * dev,
const char *capfile);
extern ykneomgr_rc ykneomgr_send_apdu (ykneomgr_dev * dev,
const uint8_t * send, size_t sendlen,
uint8_t * recv, size_t * recvlen);
#ifdef __cplusplus
}
#endif
#endif
|