Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
03af330e
Commit
03af330e
authored
26 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Added dh- and dss-related functions. New functions rsa_mode() and
dhe_dss_mode(). Rev: lib/modules/SSL.pmod/context.pike:1.8
parent
f7601149
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/modules/SSL.pmod/context.pike
+43
-13
43 additions, 13 deletions
lib/modules/SSL.pmod/context.pike
with
43 additions
and
13 deletions
lib/modules/SSL.pmod/context.pike
+
43
−
13
View file @
03af330e
/* $Id: context.pike,v 1.
7
1999/0
2/15 14:41:37
nisse Exp $
/* $Id: context.pike,v 1.
8
1999/0
3/09 14:55:40
nisse Exp $
*
*
* Keeps track of global data for an SSL server,
* Keeps track of global data for an SSL server,
* such as preferred encryption algorithms and session cache.
* such as preferred encryption algorithms and session cache.
...
@@ -15,6 +15,9 @@ object rsa; /* Servers private key */
...
@@ -15,6 +15,9 @@ object rsa; /* Servers private key */
object long_rsa;
object long_rsa;
object short_rsa;
object short_rsa;
object dsa; /* Servers dsa key */
object dh_params; /* Parameters for dh keyexchange */
function(int:string) random; /* Random number generator */
function(int:string) random; /* Random number generator */
/* Chain of X509.v3 certificates
/* Chain of X509.v3 certificates
...
@@ -27,7 +30,14 @@ array(string) authorities; /* List of authorities distinguished names */
...
@@ -27,7 +30,14 @@ array(string) authorities; /* List of authorities distinguished names */
array(int) preferred_auth_methods =
array(int) preferred_auth_methods =
({ AUTH_rsa_sign });
({ AUTH_rsa_sign });
array(int) preferred_suites =
array(int) preferred_suites;
void rsa_mode()
{
#ifdef SSL3_DEBUG
werror("SSL.context: rsa_mode()\n");
#endif
preferred_suites =
({ SSL_rsa_with_idea_cbc_sha,
({ SSL_rsa_with_idea_cbc_sha,
SSL_rsa_with_rc4_128_sha,
SSL_rsa_with_rc4_128_sha,
SSL_rsa_with_rc4_128_md5,
SSL_rsa_with_rc4_128_md5,
...
@@ -37,13 +47,31 @@ array(int) preferred_suites =
...
@@ -37,13 +47,31 @@ array(int) preferred_suites =
SSL_rsa_with_null_sha,
SSL_rsa_with_null_sha,
SSL_rsa_with_null_md5
SSL_rsa_with_null_md5
});
});
}
void
export
_mode()
void
dhe_dss
_mode()
{
{
#ifdef SSL3_DEBUG
werror("SSL.context: dhe_dss_mode()\n");
#endif
preferred_suites =
preferred_suites =
({ SSL_dhe_dss_with_3des_ede_cbc_sha,
SSL_dhe_dss_with_des_cbc_sha,
SSL_dhe_dss_export_with_des40_cbc_sha,
});
}
void export_mode()
{
#ifdef SSL3_DEBUG
werror("SSL.context: export_mode()\n");
#endif
preferred_suites &=
({ SSL_rsa_export_with_rc4_40_md5,
({ SSL_rsa_export_with_rc4_40_md5,
SSL_rsa_with_null_sha,
SSL_rsa_with_null_sha,
SSL_rsa_with_null_md5
SSL_rsa_with_null_md5,
SSL_dhe_dss_export_with_des40_cbc_sha
});
});
}
}
...
@@ -117,4 +145,6 @@ void create()
...
@@ -117,4 +145,6 @@ void create()
#endif
#endif
active_sessions = Queue();
active_sessions = Queue();
session_cache = ([ ]);
session_cache = ([ ]);
/* Backwards compatibility */
rsa_mode();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment