2
security/manager/ssl/src/nsKeygenHandler.cpp | 19 +++++++++----------
3
1 file changed, 9 insertions(+), 10 deletions(-)
5
# Fix a FTBFS with new system libnss. See Mozilla bug 399589
6
# by Fabien Tassin <fta@sofaraway.org>
8
Index: seamonkey-1.1.4/security/manager/ssl/src/nsKeygenHandler.cpp
9
===================================================================
10
--- seamonkey-1.1.4.orig/security/manager/ssl/src/nsKeygenHandler.cpp
11
+++ seamonkey-1.1.4/security/manager/ssl/src/nsKeygenHandler.cpp
14
//All possible key size choices.
15
static SECKeySizeChoiceInfo SECKeySizeChoiceList[] = {
21
+DERTemplate SECAlgorithmIDTemplate[] = {
23
+ 0, NULL, sizeof(SECAlgorithmID) },
25
+ offsetof(SECAlgorithmID,algorithm), },
26
+ { DER_OPTIONAL | DER_ANY,
27
+ offsetof(SECAlgorithmID,parameters), },
31
DERTemplate CERTSubjectPublicKeyInfoTemplate[] = {
33
0, nsnull, sizeof(CERTSubjectPublicKeyInfo) },
35
offsetof(CERTSubjectPublicKeyInfo,algorithm),
36
SECAlgorithmIDTemplate, },
39
DERTemplate CERTPublicKeyAndChallengeTemplate[] =
41
{ DER_SEQUENCE, 0, nsnull, sizeof(CERTPublicKeyAndChallenge) },
42
{ DER_ANY, offsetof(CERTPublicKeyAndChallenge,spki), },
43
{ DER_IA5_STRING, offsetof(CERTPublicKeyAndChallenge,challenge), },
47
-DERTemplate SECAlgorithmIDTemplate[] = {
49
- 0, NULL, sizeof(SECAlgorithmID) },
51
- offsetof(SECAlgorithmID,algorithm), },
52
- { DER_OPTIONAL | DER_ANY,
53
- offsetof(SECAlgorithmID,parameters), },
57
const SEC_ASN1Template SECKEY_PQGParamsTemplate[] = {
58
{ SEC_ASN1_SEQUENCE, 0, NULL, sizeof(PQGParams) },
59
{ SEC_ASN1_INTEGER, offsetof(PQGParams,prime) },
60
{ SEC_ASN1_INTEGER, offsetof(PQGParams,subPrime) },
61
{ SEC_ASN1_INTEGER, offsetof(PQGParams,base) },