Exploit databaseDownload repository ZIP
GH-1a772fd78d15c74ffffee5e2056844d3
watchtowrlabs/cve-2025-0282
Sources for CVE-2025-0282
12 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files106
watchtowrlabs/cve-2025-0282Revision d51cd7454ff8
- ↑..Parent directory
- android/
- bash/
- java/
- json/
- m4/
- po/
- tests/
- trojans/
- www/
- ABOUT-NLS
- AUTHORS
- COPYING.LGPL
- ChangeLog
- Makefile.am
- Makefile.in
- README.md
- TODO
- aclocal.m4
- array.c
- auth-common.c
- auth-globalprotect.c
- auth-html.c
- auth-juniper.c
- auth.c
- compat.c
- compile
- config.guess
- config.h.in
- config.rpath
- config.sub
- configure
- configure.ac
- cstp.c
- depcomp
- digest.c
- dtls.c
- esp-seqno.c
- esp.c
- f5.c
- fortinet.c
- gensymbols.sed
- gnutls-dtls.c
- gnutls-esp.c
- gnutls.c
- gnutls.h
- gnutls_tpm.c
- gnutls_tpm2.c
- gnutls_tpm2_esys.c
- gnutls_tpm2_ibm.c
- gpst.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
openconnect-CVE-2025-0282/multicert.c
C · 884 bytes#include <config.h>
#include "openconnect-internal.h"
static const struct {
openconnect_hash_type id;
const char *name;
} digest_table[OPENCONNECT_HASH_MAX + 1] = {
[ OPENCONNECT_HASH_SHA256 ] = { OPENCONNECT_HASH_SHA256, "sha256" },
[ OPENCONNECT_HASH_SHA384 ] = { OPENCONNECT_HASH_SHA384, "sha384" },
[ OPENCONNECT_HASH_SHA512 ] = { OPENCONNECT_HASH_SHA512, "sha512" },
};
const char *multicert_hash_get_name(int id)
{
size_t i;
if (id > 0 && (size_t) id < ARRAY_SIZE(digest_table)) {
i = (size_t) id;
if (digest_table[i].id)
return digest_table[i].name;
}
return NULL;
}
openconnect_hash_type multicert_hash_get_id(const char *name)
{
size_t i;
if (name) {
for (i = 1; i < ARRAY_SIZE(digest_table); i++) {
if (digest_table[i].name &&
!strcmp(digest_table[i].name, name))
return digest_table[i].id;
}
}
return OPENCONNECT_HASH_UNKNOWN;
}