Skip to content

Commit

Permalink
Made wincx the last argument of PK11_PubDeriveExtended. r=relyea.
Browse files Browse the repository at this point in the history
Modified Files: pk11func.h pk11skey.c ssl3con.c
  • Loading branch information
wchang0222%aol.com committed Dec 19, 2003
1 parent f21d4d3 commit 1a4de6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions security/nss/lib/pk11wrap/pk11func.h
Expand Up @@ -333,8 +333,8 @@ PK11SymKey *PK11_PubDerive( SECKEYPrivateKey *privKey,
PK11SymKey *PK11_PubDeriveExtended( SECKEYPrivateKey *privKey,
SECKEYPublicKey *pubKey, PRBool isSender, SECItem *randomA, SECItem *randomB,
CK_MECHANISM_TYPE derive, CK_MECHANISM_TYPE target,
CK_ATTRIBUTE_TYPE operation, int keySize,void *wincx,
CK_ULONG kdf, SECItem *sharedData);
CK_ATTRIBUTE_TYPE operation, int keySize,
CK_ULONG kdf, SECItem *sharedData, void *wincx);

/*
* unwrap a new key with a symetric key.
Expand Down
4 changes: 2 additions & 2 deletions security/nss/lib/pk11wrap/pk11skey.c
Expand Up @@ -3003,8 +3003,8 @@ PK11SymKey *
PK11_PubDeriveExtended(SECKEYPrivateKey *privKey, SECKEYPublicKey *pubKey,
PRBool isSender, SECItem *randomA, SECItem *randomB,
CK_MECHANISM_TYPE derive, CK_MECHANISM_TYPE target,
CK_ATTRIBUTE_TYPE operation, int keySize,void *wincx,
CK_ULONG kdf, SECItem *sharedData)
CK_ATTRIBUTE_TYPE operation, int keySize,
CK_ULONG kdf, SECItem *sharedData, void *wincx)
{
PK11SlotInfo *slot = privKey->pkcs11Slot;
PK11SymKey *symKey;
Expand Down
8 changes: 4 additions & 4 deletions security/nss/lib/ssl/ssl3con.c
Expand Up @@ -3760,8 +3760,8 @@ sendECDHClientKeyExchange(sslSocket * ss, SECKEYPublicKey * svrPubKey)

/* Determine the PMS */
pms = PK11_PubDeriveExtended(privKey, svrPubKey, PR_FALSE, NULL, NULL,
CKM_ECDH1_DERIVE, target, CKA_DERIVE, 0, NULL,
kdf, NULL);
CKM_ECDH1_DERIVE, target, CKA_DERIVE, 0,
kdf, NULL, NULL);

if (pms == NULL) {
ssl_MapLowLevelError(SSL_ERROR_CLIENT_KEY_EXCHANGE_FAILURE);
Expand Down Expand Up @@ -6984,8 +6984,8 @@ ssl3_HandleECDHClientKeyExchange(sslSocket *ss, SSL3Opaque *b,

/* Determine the PMS */
pms = PK11_PubDeriveExtended(srvrPrivKey, &clntPubKey, PR_FALSE, NULL, NULL,
CKM_ECDH1_DERIVE, target, CKA_DERIVE, 0, NULL,
kdf, NULL);
CKM_ECDH1_DERIVE, target, CKA_DERIVE, 0,
kdf, NULL, NULL);

PORT_Free(clntPubKey.u.ec.publicValue.data);

Expand Down

0 comments on commit 1a4de6b

Please sign in to comment.