]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * charybdis: A useful ircd. | |
3 | * certpf.h: Fingerprint method strings | |
4 | * | |
5 | * Copyright 2016 Simon Arlott | |
6 | * | |
7 | * This program is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License as published by | |
9 | * the Free Software Foundation; either version 2 of the License, or | |
10 | * (at your option) any later version. | |
11 | * | |
12 | * This program is distributed in the hope that it will be useful, | |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | * GNU General Public License for more details. | |
16 | * | |
17 | * You should have received a copy of the GNU General Public License | |
18 | * along with this program; if not, write to the Free Software | |
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 | |
20 | * USA | |
21 | */ | |
22 | ||
23 | #ifndef INCLUDED_certfp_h | |
24 | #define INCLUDED_certfp_h | |
25 | ||
26 | #define CERTFP_NAME_CERT_SHA1 "sha1" | |
27 | #define CERTFP_PREFIX_CERT_SHA1 "" | |
28 | #define CERTFP_NAME_CERT_SHA256 "sha256" | |
29 | #define CERTFP_PREFIX_CERT_SHA256 "" | |
30 | #define CERTFP_NAME_CERT_SHA512 "sha512" | |
31 | #define CERTFP_PREFIX_CERT_SHA512 "" | |
32 | /* These prefixes are copied from RFC 7218 */ | |
33 | #define CERTFP_NAME_SPKI_SHA256 "spki_sha256" | |
34 | #define CERTFP_PREFIX_SPKI_SHA256 "SPKI:SHA2-256:" | |
35 | #define CERTFP_NAME_SPKI_SHA512 "spki_sha512" | |
36 | #define CERTFP_PREFIX_SPKI_SHA512 "SPKI:SHA2-512:" | |
37 | ||
38 | #endif /* INCLUDED_certfp_h */ |