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



commit 49257e200f2ea263a37515bf621f2bfb971ac1b5
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 357a5dd..fa00a52 100644
--- a/properties/auth-helpers.c
+++ b/properties/auth-helpers.c
@@ -1077,6 +1077,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,
@@ -1102,6 +1103,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 f3c25ce..e6e177a 100644
--- a/src/nm-openvpn-service.c
+++ b/src/nm-openvpn-service.c
@@ -605,6 +605,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]