errors. Fix printing code to not crash on missing optional nextUpdate.
r=julien.pierre
git-svn-id: svn://10.0.0.236/trunk@162858 18797224-902f-48f8-a5cc-f745e15eee43
NSS needs to handle better token insertion and removal.
Applied from patch to NSS 3.9
git-svn-id: svn://10.0.0.236/trunk@160095 18797224-902f-48f8-a5cc-f745e15eee43
NSS Crashes or leaks Cert references if bad certs are passed up by PKCS #11 modules.
r=nelson
sr=ian
git-svn-id: svn://10.0.0.236/trunk@159599 18797224-902f-48f8-a5cc-f745e15eee43
bug 246130. The new factor is:
pk11akey.c - asymetric keys constructed from pk11cert.c and pk11skey.c
pk11auth.c - authentication/password management factored from pk11slot.c
pk11cert.c - cert code with private key, crls and trust factored out.
pk11ctx.c -- pkcs11 context code, factored out of pk11skey.c
new pk11func.h -- for backward compatibility.
pk11mech.c - mechanism mapping code, factored mostly from pk11slot.c
pk11nobj.c - netscape objects (crls and trust), factored mostly from pk11cert.c
pk11obj.c - generic object support, factored from pk11skey.c pk11slot.c and
pk11cert.c
pk11priv.h -- private functions factored from pk11func.h
pk11pub.h -- public functions factored from pk11func.h
pk11skey.c - now only symetric key ops; private, public key ops, generic ops
and crypto contexs have been factored out.
pk11slot.c - still slot operations. Authentication, generic object ops,
mechanism mapping has been factored out.
This patch should only have refactoring, no new functions or other changes.
git-svn-id: svn://10.0.0.236/trunk@159504 18797224-902f-48f8-a5cc-f745e15eee43
an indentation of 4. Also rewrap a few strangely wrapped lines.
Bug 249330.
git-svn-id: svn://10.0.0.236/trunk@159304 18797224-902f-48f8-a5cc-f745e15eee43
Factor a function call out of the arguments of another function call,
which is mostly to make that code more easily debugged.
This is patch 3 of 5 for bug 245429. r=wtc.
git-svn-id: svn://10.0.0.236/trunk@159127 18797224-902f-48f8-a5cc-f745e15eee43
separated by one huge if-then-else. They do different things and take
different arguments. So, I split them into two separate functions:
sec_asn1e_write_contents and sec_asn1e_write_contents_from_buf
the latter of which takes a buf pointer and length argument.
The if statement that chooses between the two is now in the caller.
This is patch 2 of 5 for bug 245429. r=wtc.
git-svn-id: svn://10.0.0.236/trunk@159126 18797224-902f-48f8-a5cc-f745e15eee43
keyword. rename "ignore_stream" to "disallowStreaming" because it
doesn't merely ignore. rename "ignoresubstream" to "disallowStreaming"
for the same reason. Patch 1 of 5 for bug 245429. sr=wtc.
git-svn-id: svn://10.0.0.236/trunk@159125 18797224-902f-48f8-a5cc-f745e15eee43
to the output callback function that is called by the ASN.1 encoders,
and which feeds into the next PKCS7 encoder in the outward direction.
Bug 210179. sr=relyea
git-svn-id: svn://10.0.0.236/trunk@159123 18797224-902f-48f8-a5cc-f745e15eee43
example, the nssckbi module) save a pointer to the CK_C_INITIALIZE_ARGS
passed to them. So if we pass a pointer to the stack variable moduleArgs,
the pointer will point to a structure that has gone out of scope. To
prevent crashes in these broken modules, we continue to pass a pointer to
the global secmodLockFunctions whenever we can. r=relyea.
git-svn-id: svn://10.0.0.236/trunk@158932 18797224-902f-48f8-a5cc-f745e15eee43
CERT_DecodeDERCertificate. r=nelsonb. Thanks to Chris Newman
of Sun for the bug report.
git-svn-id: svn://10.0.0.236/trunk@158814 18797224-902f-48f8-a5cc-f745e15eee43
SSL messages. Previously NSS would reject some it should accept
and vice versa. Bugscape bug 57121. r=wtc,julien
git-svn-id: svn://10.0.0.236/trunk@158397 18797224-902f-48f8-a5cc-f745e15eee43
the files produced by the command "makepqg -a". Plug some memory leaks.
r=relyea,vipul Bug 247739
git-svn-id: svn://10.0.0.236/trunk@158387 18797224-902f-48f8-a5cc-f745e15eee43
Add support for unprotected private keys without requiring authentication.
Add support to access application specific PKCS #11 objects through NSS.
git-svn-id: svn://10.0.0.236/trunk@158274 18797224-902f-48f8-a5cc-f745e15eee43
PK11_PQG_ParamGetSeedLen so encoded values will be correct.
Bug 247737. r=relyea.
git-svn-id: svn://10.0.0.236/trunk@158259 18797224-902f-48f8-a5cc-f745e15eee43