Yubikey-personalize NEWS -- History of user-visible changes. -*- outline -*-
+* Version 1.6.2 (unreleased)
+
+** Header files are now usable from C++.
+Reported by Giampaolo Bellini.
+
* Version 1.6.1 (released 2011-08-15)
** Fix test_args_to_config crash on some platform.
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008, 2009, Yubico AB
+ * Copyright (c) 2008-2011, Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
#include <stdbool.h>
#include <stdint.h>
+# ifdef __cplusplus
+extern "C" {
+# endif
+
/*************************************************************************
**
** N O T E : For all functions that return a value, 0 and NULL indicates
#define YK_CRC_OK_RESIDUAL 0xf0b8
+# ifdef __cplusplus
+}
+# endif
+
#endif /* __YKCORE_H_INCLUDED__ */
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
* Written by Richard Levitte <richard@levitte.org>
- * Copyright (c) 2008, Yubico AB
+ * Copyright (c) 2008-2011, Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
#include <ykcore.h>
+# ifdef __cplusplus
+extern "C" {
+# endif
+
/* Allocate and free status structures */
extern YK_STATUS *ykds_alloc(void);
extern void ykds_free(YK_STATUS *st);
extern int ykds_pgm_seq(const YK_STATUS *st);
extern int ykds_touch_level(const YK_STATUS *st);
+# ifdef __cplusplus
+}
+# endif
+
#endif /* __YKSTATUS_H_INCLUDED__ */
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008, 2009, 2010, 2011 Yubico AB
+ * Copyright (c) 2008-2011 Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
#include <stdbool.h>
#include <ykstatus.h>
+# ifdef __cplusplus
+extern "C" {
+# endif
+
typedef struct ykp_config_t YKP_CONFIG;
/* This only works with Yubikey 1 unless it's fed with a YK_STATUS using
#define YKP_EINVCONFNUM 0x05
#define YKP_EINVAL 0x06
+# ifdef __cplusplus
+}
+# endif
+
#endif /* __YKPERS_H_INCLUDED__ */