summaryrefslogtreecommitdiffstats
path: root/kex.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--kex.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/kex.h b/kex.h
index 0caf42b..34665eb 100644
--- a/kex.h
+++ b/kex.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kex.h,v 1.122 2024/02/02 00:13:34 djm Exp $ */
+/* $OpenBSD: kex.h,v 1.123 2024/05/17 00:30:23 djm Exp $ */
/*
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
@@ -92,7 +92,7 @@ enum kex_modes {
};
enum kex_exchange {
- KEX_DH_GRP1_SHA1,
+ KEX_DH_GRP1_SHA1 = 1,
KEX_DH_GRP14_SHA1,
KEX_DH_GRP14_SHA256,
KEX_DH_GRP16_SHA512,
@@ -183,9 +183,14 @@ struct kex {
struct sshbuf *client_pub;
};
+int kex_name_valid(const char *);
+u_int kex_type_from_name(const char *);
+int kex_hash_from_name(const char *);
+int kex_nid_from_name(const char *);
int kex_names_valid(const char *);
char *kex_alg_list(char);
char *kex_names_cat(const char *, const char *);
+int kex_has_any_alg(const char *, const char *);
int kex_assemble_names(char **, const char *, const char *);
void kex_proposal_populate_entries(struct ssh *, char *prop[PROPOSAL_MAX],
const char *, const char *, const char *, const char *, const char *);