Skip to content
Snippets Groups Projects
Commit 77147eba authored by Niels Möller's avatar Niels Möller
Browse files

mac-classes: Use constant in overrided attributes.

Rev: lib/modules/SSL.pmod/cipher.pike:1.7
parent ef2654ac
Branches
Tags
No related merge requests found
/* $Id: cipher.pike,v 1.6 1997/05/31 22:03:52 grubba Exp $ /* $Id: cipher.pike,v 1.7 1998/01/20 16:11:53 nisse Exp $
* *
*/ */
...@@ -25,11 +25,11 @@ class mac_none ...@@ -25,11 +25,11 @@ class mac_none
class mac_sha class mac_sha
{ {
string pad_1 = "6666666666666666666666666666666666666666"; constant pad_1 = "6666666666666666666666666666666666666666";
string pad_2 = ("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" constant pad_2 = ("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"); "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");
program algorithm = Crypto.sha; constant algorithm = Crypto.sha;
string secret; string secret;
...@@ -69,11 +69,11 @@ class mac_sha ...@@ -69,11 +69,11 @@ class mac_sha
class mac_md5 { class mac_md5 {
inherit mac_sha; inherit mac_sha;
string pad_1 = "666666666666666666666666666666666666666666666666"; constant pad_1 = "666666666666666666666666666666666666666666666666";
string pad_2 = ("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" constant pad_2 = ("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"); "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");
program algorithm = Crypto.md5; constant algorithm = Crypto.md5;
} }
#if 0 #if 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment