nss_util.c revision 625bb2ddf15e8f305a53afa44e87f2146fa930af
292N/A along with this program. If not, see <http://www.gnu.org/licenses/>.
292N/Astatic int nspr_nss_init_done = 0;
292N/Aint nspr_nss_init(void)
194N/A PR_GetError());
121N/Aint nspr_nss_cleanup(void)
PR_GetError());
return EIO;
PR_Cleanup();
nspr_nss_init_done = 0;
return EOK;
return EOK;
int ret;
PR_GetError());
goto done;
PR_GetError());
goto done;
PR_GetError());
goto done;
if (!key) {
goto done;
goto done;
done:
return ret;
int ret;
if (!cctx) {
return ENOMEM;
PR_GetError());
goto done;
if (keylen > 0) {
goto done;
if (key) {
goto done;
if (ivlen > 0) {
goto done;
if (iv) {
goto done;
done:
return ret;
int ret;
switch (crypto_op) {
case op_encrypt:
case op_decrypt:
case op_sign:
return EFAULT;
PR_GetError());
goto done;
PR_GetError());
goto done;
goto done;
PORT_GetError());
goto done;
done:
return ret;