-Copyright (c) 2008-2013 Yubico AB
+Copyright (c) 2008-2014 Yubico AB
Copyright (c) 2009-2010 Tollef Fog Heen <tfheen@err.no>
Copyright (c) 2009 Christer Kaivo-oja <christer.kaivooja@gmail.com>
Copyright (c) 2010 Simon Josefsson <simon@josefsson.org>
# Written by Richard Levitte <richard@levitte.org>.
-# Copyright (c) 2008-2013 Yubico AB
+# Copyright (c) 2008-2014 Yubico AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# Written by Simon Josefsson <simon@yubico.com>.
-# Copyright (c) 2008-2013 Yubico AB
+# Copyright (c) 2008-2014 Yubico AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2011-2013 Yubico AB
+ * Copyright (c) 2011-2014 Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2012-2013 Yubico AB
+ * Copyright (c) 2012-2014 Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008-2013 Yubico AB
+ * Copyright (c) 2008-2014 Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
/* Read a status report from the key */
memset(data, 0, sizeof(data));
- if (!_ykusb_read(yk, REPORT_TYPE_FEATURE, slot, (char *) &data, FEATURE_RPT_SIZE))
+ if (!_ykusb_read(yk, REPORT_TYPE_FEATURE, slot, (char *) &data, FEATURE_RPT_SIZE)) {
+ if(yk_errno == YK_ENODATA) {
+ yk_errno = 0;
+ continue;
+ }
return 0;
+ }
if (last_data != NULL)
memcpy(last_data, data, sizeof(data));
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008-2012 Yubico AB
+ * Copyright (c) 2008-2014 Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008-2013 Yubico AB
+ * Copyright (c) 2008-2014 Yubico AB
* Copyright (c) 2009 Tollef Fog Heen <tfheen@err.no>
* All rights reserved.
*
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008-2012 Yubico AB
+ * Copyright (c) 2008-2014 Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008-2012 Yubico AB
+ * Copyright (c) 2008-2014 Yubico AB
* Copyright (c) 2009 Christer Kaivo-oja <christer.kaivooja@gmail.com>
* All rights reserved.
*
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008-2013 Yubico AB
+ * Copyright (c) 2008-2014 Yubico AB
* Copyright (c) 2010 Tollef Fog Heen <tfheen@err.no>
* All rights reserved.
*
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008-2012 Yubico AB
+ * Copyright (c) 2008-2014 Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008-2013 Yubico AB
+ * Copyright (c) 2008-2014 Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008-2013 Yubico AB
+ * Copyright (c) 2008-2014 Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
-.\" Copyright (c) 2009-2013 Yubico AB
+.\" Copyright (c) 2009-2014 Yubico AB
.\" Copyright (C) 2009, 2010 Tollef Fog Heen <tfheen@err.no>
.\" All rights reserved.
.\"
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
- * Copyright (c) 2008-2013 Yubico AB
+ * Copyright (c) 2008-2014 Yubico AB
* Copyright (c) 2010 Tollef Fog Heen <tfheen@err.no>
* All rights reserved.
*