mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
SSL: add support for signature_algorithms extension.
This commit is contained in:
parent
fa83497f26
commit
11ec4903ee
9 changed files with 121 additions and 3 deletions
|
@ -3009,6 +3009,23 @@ export {
|
|||
};
|
||||
}
|
||||
|
||||
module SSL;
|
||||
export {
|
||||
type SignatureAndHashAlgorithm: record {
|
||||
HashAlgorithm: count; ##< Hash algorithm number
|
||||
SignatureAlgorithm: count; ##< Signature algorithm number
|
||||
};
|
||||
}
|
||||
|
||||
module GLOBAL;
|
||||
|
||||
## A vector of Signature and Hash Algorithms.
|
||||
##
|
||||
## .. todo:: We need this type definition only for declaring builtin functions
|
||||
## via ``bifcl``. We should extend ``bifcl`` to understand composite types
|
||||
## directly and then remove this alias.
|
||||
type signature_and_hashalgorithm_vec: vector of SSL::SignatureAndHashAlgorithm;
|
||||
|
||||
module X509;
|
||||
export {
|
||||
type Certificate: record {
|
||||
|
|
|
@ -57,6 +57,27 @@ export {
|
|||
[2] = "fatal",
|
||||
} &default=function(i: count):string { return fmt("unknown-%d", i); };
|
||||
|
||||
## Mapping between numeric codes and human readable strings for hash
|
||||
## algorithms.
|
||||
const hash_algorithms: table[count] of string = {
|
||||
[0] = "none",
|
||||
[1] = "md5",
|
||||
[2] = "sha1",
|
||||
[3] = "sha224",
|
||||
[4] = "sha256",
|
||||
[5] = "sha384",
|
||||
[6] = "sha512",
|
||||
} &default=function(i: count):string { return fmt("unknown-%d", i); };
|
||||
|
||||
## Mapping between numeric codes and human readable strings for signature
|
||||
## algorithms.
|
||||
const signature_algorithms: table[count] of string = {
|
||||
[0] = "anonymous",
|
||||
[1] = "rsa",
|
||||
[2] = "dsa",
|
||||
[3] = "ecdsa",
|
||||
} &default=function(i: count):string { return fmt("unknown-%d", i); };
|
||||
|
||||
## Mapping between numeric codes and human readable strings for alert
|
||||
## descriptions.
|
||||
const alert_descriptions: table[count] of string = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue