From: Klas Lindfors Date: Fri, 12 Apr 2013 10:20:52 +0000 (+0200) Subject: add not implemented legacy function to import X-Git-Tag: v1.13.0~50 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2b58102543940205e6a15be69afcf2a203e5ddb;p=yubikey-personalization add not implemented legacy function to import --- diff --git a/ykpers.c b/ykpers.c index d66fcc2..9957035 100644 --- a/ykpers.c +++ b/ykpers.c @@ -1010,8 +1010,11 @@ int ykp_import_config(const char *buf, size_t len, YKP_CONFIG *cfg, int format) { if(format == YKP_FORMAT_JSON) { return ykp_json_import_cfg(buf, len, cfg); + } else if(format == YKP_FORMAT_LEGACY) { + ykp_errno = YKP_ENOTYETIMPL; } - return 1; + ykp_errno = YKP_EINVAL; + return 0; } int ykp_write_config(const YKP_CONFIG *cfg, int (*writer)(const char *buf, size_t count,