diff options
author | wtc%google.com <devnull@localhost> | 2008-09-20 01:10:04 +0000 |
---|---|---|
committer | wtc%google.com <devnull@localhost> | 2008-09-20 01:10:04 +0000 |
commit | 5c54d571a57a635f9587a67c777ef411d8c48a54 (patch) | |
tree | c661aca2a78f02af49d380aa2c33ec1d8b5f7510 /security | |
parent | ae6fbf48631dcba3a3f035eafbb84a6461edf130 (diff) | |
download | nss-hg-5c54d571a57a635f9587a67c777ef411d8c48a54.tar.gz |
Bug 456036: The stubs for deprecated functions should set the
PR_NOT_IMPLEMENTED_ERROR error before returning failure. r=julien.pierre
Diffstat (limited to 'security')
-rw-r--r-- | security/nss/lib/certdb/stanpcertdb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/security/nss/lib/certdb/stanpcertdb.c b/security/nss/lib/certdb/stanpcertdb.c index 1d81acd2b..6b48ca169 100644 --- a/security/nss/lib/certdb/stanpcertdb.c +++ b/security/nss/lib/certdb/stanpcertdb.c @@ -996,6 +996,7 @@ CERT_OpenCertDBFilename(CERTCertDBHandle *handle, char *certdbname, PRBool readOnly) { PORT_Assert("CERT_OpenCertDBFilename is Deprecated" == NULL); + PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); return SECFailure; } @@ -1003,6 +1004,7 @@ SECItem * SECKEY_HashPassword(char *pw, SECItem *salt) { PORT_Assert("SECKEY_HashPassword is Deprecated" == NULL); + PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); return NULL; } @@ -1012,6 +1014,7 @@ __CERT_TraversePermCertsForSubject(CERTCertDBHandle *handle, void *cb, void *cbarg) { PORT_Assert("CERT_TraversePermCertsForSubject is Deprecated" == NULL); + PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); return SECFailure; } @@ -1021,6 +1024,7 @@ __CERT_TraversePermCertsForNickname(CERTCertDBHandle *handle, char *nickname, void *cb, void *cbarg) { PORT_Assert("CERT_TraversePermCertsForNickname is Deprecated" == NULL); + PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); return SECFailure; } |