Commit Graph

1112 Commits

Author SHA1 Message Date
Klas Lindfors 82e054d244 rename ykpiv_send_data() to send_data() since it's local 2014-06-25 15:47:56 +02:00
Klas Lindfors 07d831c50c drop apdu structure from tool 2014-06-25 15:44:21 +02:00
Klas Lindfors 1f567f62eb drop unused code from delete_cert 2014-06-25 15:44:00 +02:00
Klas Lindfors b8ecc6cda2 refactor so ykpiv_sign_data() takes size_t input 2014-06-25 15:41:20 +02:00
Klas Lindfors ba9ee75b3f stop exporting ykpiv_send_data() 2014-06-25 15:38:53 +02:00
Klas Lindfors b0ff83ac9c refactor change_pin() to use ykpiv_transfer_data() 2014-06-25 15:36:33 +02:00
Klas Lindfors b508f8bfea refactor to ykpiv_transfer_data() for chuid setting 2014-06-25 15:28:44 +02:00
Klas Lindfors a60096addf refactor pin-retries to use ykpiv_transfer_data() 2014-06-25 15:24:40 +02:00
Klas Lindfors 28ab285d92 refactor reset to use ykpiv_transfer_data() instead 2014-06-25 15:22:04 +02:00
Klas Lindfors 00343b9b6c refactor transfer data so it can send 0 bytes 2014-06-25 15:17:27 +02:00
Klas Lindfors c4d8492682 make get_length() take a const buffer 2014-06-25 15:10:56 +02:00
Klas Lindfors 1ded0f6496 set version on the selfsigned cert 2014-06-25 14:14:23 +02:00
Klas Lindfors 58e078af2f add error messages 2014-06-25 10:47:32 +02:00
Klas Lindfors 9b5ede8530 change around and let ykpiv_sign_data() pad 2014-06-25 10:47:32 +02:00
Klas Lindfors d17c0650a9 3f ff for object 2014-06-24 16:18:01 +02:00
Klas Lindfors 7338dcae8a some negative tests of parse_name() 2014-06-24 15:22:33 +02:00
Klas Lindfors 2e8170aa31 only return the actual data in ykpiv_fetch_data() 2014-06-24 15:02:36 +02:00
Klas Lindfors c5696d4b45 rework some stuff to size_t 2014-06-24 15:02:26 +02:00
Klas Lindfors 05a30e1da5 add ykpiv_fetch_object() to library 2014-06-24 14:35:59 +02:00
Simon Josefsson 0378c291e0 Fix. 2014-06-24 14:28:31 +02:00
Simon Josefsson e86260341b Add. 2014-06-24 14:22:52 +02:00
Klas Lindfors d5222c10b7 add macros for piv objects 2014-06-24 14:07:15 +02:00
Klas Lindfors a46cbc55b6 fix indentation 2014-06-24 13:58:47 +02:00
Klas Lindfors 33c71344de let util.h include cmdline.h
since it's using declarations from it..
2014-06-24 10:42:50 +02:00
Klas Lindfors 5588368d55 link the util lib with openssl 2014-06-24 10:39:23 +02:00
Klas Lindfors 5cdad1d785 constify 2014-06-24 10:39:17 +02:00
Klas Lindfors cdcbec8140 test for parse_name() 2014-06-24 10:28:45 +02:00
Klas Lindfors 81ddeb047f let parse_name() take a const char* instead 2014-06-24 10:28:45 +02:00
Klas Lindfors 92db159c4f change internal.h to util.h 2014-06-24 10:28:45 +02:00
Klas Lindfors b048ea85e5 move lib tests under lib 2014-06-24 09:52:10 +02:00
Klas Lindfors 72f271ae73 move basic.sh test to subdir of tool 2014-06-24 09:50:11 +02:00
Klas Lindfors ab3083dc1b split out util functions from yubico-piv-tool.c 2014-06-24 09:43:27 +02:00
Klas Lindfors 31d9d0d680 add ykpiv_verify to the library 2014-06-23 09:57:10 +02:00
Klas Lindfors 052b80830a make constants for more instructions 2014-06-18 13:28:28 +02:00
Klas Lindfors 3c557ebbea use constants for algorithm ids 2014-06-18 13:21:05 +02:00
Klas Lindfors b82e64362c set version correctly in NEWS 2014-06-18 10:22:00 +02:00
Klas Lindfors 0b16262055 bump openssl version for windows 2014-06-18 10:19:50 +02:00
Klas Lindfors a97010d5e3 add ykpiv_get_version() function 2014-06-17 15:26:48 +02:00
Klas Lindfors 880c8a0061 move sign_data() function to library 2014-06-17 15:11:02 +02:00
Klas Lindfors 7b2fecb8fd include windows.h on windows 2014-06-17 14:28:16 +02:00
Klas Lindfors e399534651 make a small temp library to avoid warnings on ggo file 2014-06-17 13:48:36 +02:00
Klas Lindfors d36eb37cf9 no EXTRA_DIST in tool 2014-06-17 11:01:01 +02:00
Klas Lindfors f468146311 add ykpiv_disconnect() 2014-06-17 10:55:46 +02:00
Klas Lindfors 9d0d163f62 some tests for the library 2014-06-17 10:34:51 +02:00
Klas Lindfors 931cc5f35a include ykpiv-version.h in ykpiv.h 2014-06-17 10:34:05 +02:00
Klas Lindfors d1b2062721 add ykpiv_parse_key() 2014-06-17 10:07:49 +02:00
Klas Lindfors 01c844905a add ykpiv_set_mgmkey() 2014-06-17 09:58:55 +02:00
Klas Lindfors 8eb955bd13 make constants for algorithms, keys and instructions 2014-06-17 09:58:37 +02:00
Klas Lindfors d62430c2d5 more constness 2014-06-17 09:37:37 +02:00
Klas Lindfors 1f8cff5711 move apdu structure to internal.h 2014-06-17 09:35:58 +02:00