[network-manager-openvpn/NM_0_8] core: add RSA-MD4 HMAC digest algorithm



commit be4b8aeea1acfac9f5d79030c47cfb9e02100bb3
Author: Olivier Lambert <lambert olivier gmail com>
Date:   Thu Jun 2 17:57:17 2011 -0500

    core: add RSA-MD4 HMAC digest algorithm

 properties/auth-helpers.c |    3 +++
 src/nm-openvpn-service.c  |    1 +
 src/nm-openvpn-service.h  |    1 +
 3 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/properties/auth-helpers.c b/properties/auth-helpers.c
index fdaa028..02655fd 100644
--- a/properties/auth-helpers.c
+++ b/properties/auth-helpers.c
@@ -1058,6 +1058,7 @@ populate_hmacauth_combo (GtkComboBox *box, const char *hmacauth)
 	const char **item;
 	static const char *items[] = {
 		NM_OPENVPN_AUTH_NONE,
+		NM_OPENVPN_AUTH_RSA_MD4,
 		NM_OPENVPN_AUTH_MD5,
 		NM_OPENVPN_AUTH_SHA1,
 		NM_OPENVPN_AUTH_SHA224,
@@ -1083,6 +1084,8 @@ populate_hmacauth_combo (GtkComboBox *box, const char *hmacauth)
 
 		if (!strcmp (*item, NM_OPENVPN_AUTH_NONE))
 			name = _("None");
+		else if (!strcmp (*item, NM_OPENVPN_AUTH_RSA_MD4))
+			name = _("RSA MD-4");
 		else if (!strcmp (*item, NM_OPENVPN_AUTH_MD5))
 			name = _("MD-5");
 		else if (!strcmp (*item, NM_OPENVPN_AUTH_SHA1))
diff --git a/src/nm-openvpn-service.c b/src/nm-openvpn-service.c
index 9036ba8..57a3bc7 100644
--- a/src/nm-openvpn-service.c
+++ b/src/nm-openvpn-service.c
@@ -601,6 +601,7 @@ validate_auth (const char *auth)
 {
 	if (auth) {
 		if (   !strcmp (auth, NM_OPENVPN_AUTH_NONE)
+		    || !strcmp (auth, NM_OPENVPN_AUTH_RSA_MD4)
 		    || !strcmp (auth, NM_OPENVPN_AUTH_MD5)
 		    || !strcmp (auth, NM_OPENVPN_AUTH_SHA1)
 		    || !strcmp (auth, NM_OPENVPN_AUTH_SHA224)
diff --git a/src/nm-openvpn-service.h b/src/nm-openvpn-service.h
index d503f4e..c1f27c9 100644
--- a/src/nm-openvpn-service.h
+++ b/src/nm-openvpn-service.h
@@ -77,6 +77,7 @@
 #define NM_OPENVPN_KEY_RENEG_SECONDS "reneg-seconds"
 
 #define NM_OPENVPN_AUTH_NONE "none"
+#define NM_OPENVPN_AUTH_RSA_MD4 "RSA-MD4"
 #define NM_OPENVPN_AUTH_MD5  "MD5"
 #define NM_OPENVPN_AUTH_SHA1 "SHA1"
 #define NM_OPENVPN_AUTH_SHA224 "SHA224"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]