mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
2003-08-20 Marcus Brinkmann <marcus@g10code.de>
* maperror.c (map_ksba_err): Map -1. Use gpg_err_make to set the error source.
This commit is contained in:
parent
e8cf79c977
commit
238a1b26b8
@ -1,3 +1,8 @@
|
|||||||
|
2003-08-20 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* maperror.c (map_ksba_err): Map -1. Use gpg_err_make to set
|
||||||
|
the error source.
|
||||||
|
|
||||||
2003-08-14 Timo Schulz <twoaday@freakmail.de>
|
2003-08-14 Timo Schulz <twoaday@freakmail.de>
|
||||||
|
|
||||||
* dynload.h. New. W32 wrapper around the dynload mechanism.
|
* dynload.h. New. W32 wrapper around the dynload mechanism.
|
||||||
|
@ -39,10 +39,10 @@ map_ksba_err (int err)
|
|||||||
{
|
{
|
||||||
switch (err)
|
switch (err)
|
||||||
{
|
{
|
||||||
case -1:
|
|
||||||
case 0:
|
case 0:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case -1: err = GPG_ERR_EOF; break;
|
||||||
case KSBA_Out_Of_Core: err = GPG_ERR_ENOMEM; break;
|
case KSBA_Out_Of_Core: err = GPG_ERR_ENOMEM; break;
|
||||||
case KSBA_Invalid_Value: err = GPG_ERR_INV_VALUE; break;
|
case KSBA_Invalid_Value: err = GPG_ERR_INV_VALUE; break;
|
||||||
case KSBA_Not_Implemented: err = GPG_ERR_NOT_IMPLEMENTED; break;
|
case KSBA_Not_Implemented: err = GPG_ERR_NOT_IMPLEMENTED; break;
|
||||||
@ -60,7 +60,7 @@ map_ksba_err (int err)
|
|||||||
err = GPG_ERR_GENERAL;
|
err = GPG_ERR_GENERAL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return err;
|
return gpg_err_make (GPG_ERR_SOURCE_GPGSM, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user