X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=error.h;h=6c843e408c1bd91f722dec4ffed564cb67458537;hp=3f5ff73be3b1b5b8314b836c794b7a62b8740e91;hb=6a7393e2abdcf30dd4201b84a417d08f6136e8d6;hpb=74f1e057c1579d880becb6a32acd43641b1a8c2b;ds=sidebyside diff --git a/error.h b/error.h index 3f5ff73b..6c843e40 100644 --- a/error.h +++ b/error.h @@ -368,6 +368,12 @@ extern const char **para_errlist[]; PARA_ERROR(AFS_SHORT_READ, "short read from afs socket"), \ +#define CRYPT_COMMON_ERRORS \ + PARA_ERROR(SSH_KEY_HEADER, "ssh key header not found"), \ + PARA_ERROR(BASE64, "failed to base64-decode ssh public key"), \ + PARA_ERROR(KEY_PERM, "unprotected private key"), \ + + #define CRYPT_ERRORS \ PARA_ERROR(PRIVATE_KEY, "can not read private key"), \ PARA_ERROR(PUBLIC_KEY, "can not read public key"), \ @@ -375,8 +381,6 @@ extern const char **para_errlist[]; PARA_ERROR(ENCRYPT, "encrypt error"), \ PARA_ERROR(DECRYPT, "decrypt error"), \ PARA_ERROR(BLINDING, "failed to activate key blinding"), \ - PARA_ERROR(KEY_PERM, "unprotected private key"), \ - PARA_ERROR(BASE64, "failed to base64-decode ssh private key"), \ PARA_ERROR(BIGNUM, "bignum error"), \