refactor writing object to it's own library function

ykpiv_save_object(), use that for writing certs
This commit is contained in:
Klas Lindfors
2014-06-26 08:02:44 +02:00
parent b0eec2a6ea
commit a1c2e4e8d1
4 changed files with 64 additions and 39 deletions
+2
View File
@@ -79,6 +79,8 @@ extern "C"
ykpiv_rc ykpiv_verify(ykpiv_state *state, const char *pin, int *tries);
ykpiv_rc ykpiv_fetch_object(ykpiv_state *state, int object_id,
unsigned char *data, unsigned long *len);
ykpiv_rc ykpiv_save_object(ykpiv_state *state, int object_id,
unsigned char *indata, size_t len);
#define YKPIV_ALGO_3DES 0x03
#define YKPIV_ALGO_RSA1024 0x06