This commit is contained in:
peterv%propagandism.org 2004-03-06 17:22:13 +00:00
Родитель ea1cf34ef0
Коммит 8e81f7982b
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -89,8 +89,6 @@ NSSCleanupAutoPtrClass(CERTCertNicknames, CERT_FreeNicknames)
*/
#define JS_ERROR "error:"
#define JS_ERROR_USER_CANCEL JS_ERROR"userCancel"
#define JS_ERROR_NOCERT JS_ERROR"noMatchingCert"
#define JS_ERROR_INTERNAL JS_ERROR"internalError"
#undef REPORT_INCORRECT_NUM_ARGS
@ -2114,7 +2112,7 @@ nsCrypto::SignText(const nsAString& aStringToSign, const nsAString& aCaOption,
{
// XXX This code should return error codes, but we're keeping this
// backwards compatible with NS4.x and so we can't throw exceptions.
NS_NAMED_LITERAL_STRING(internalError, JS_ERROR_INTERNAL);
NS_NAMED_LITERAL_STRING(internalError, "error:internalError");
aResult.Truncate();
@ -2199,7 +2197,7 @@ nsCrypto::SignText(const nsAString& aStringToSign, const nsAString& aCaOption,
}
if (!certList || CERT_LIST_EMPTY(certList)) {
aResult.Append(NS_LITERAL_STRING(JS_ERROR_NOCERT));
aResult.Append(NS_LITERAL_STRING("error:noMatchingCert"));
return NS_OK;
}
@ -2368,7 +2366,7 @@ nsCrypto::SignText(const nsAString& aStringToSign, const nsAString& aCaOption,
}
if (canceled) {
aResult.Append(NS_LITERAL_STRING(JS_ERROR_USER_CANCEL));
aResult.Append(NS_LITERAL_STRING("error:userCancel"));
return NS_OK;
}