Blame SOURCES/1002-Fix-CA-option-name-for-ipa-cert-request.patch

6696b9
From 6aca3545c847673a7bc3d5120378f896dc420a15 Mon Sep 17 00:00:00 2001
6696b9
From: Fraser Tweedale <ftweedal@redhat.com>
6696b9
Date: Thu, 18 Aug 2016 18:25:49 +1000
6696b9
Subject: [PATCH] Fix CA option name for ipa cert-request
6696b9
6696b9
The cert-request option for specifying the issuer is 'cacn', but
6696b9
certmonger is sending 'ca'.  Use the correct option name.
6696b9
6696b9
Part of: https://fedorahosted.org/certmonger/ticket/51
6696b9
---
6696b9
 src/ipa.c | 4 ++--
6696b9
 1 file changed, 2 insertions(+), 2 deletions(-)
6696b9
6696b9
diff --git a/src/ipa.c b/src/ipa.c
6696b9
index f8abe609a603b614067e56ebe9935472b647ed99..13ea4cadf108a86687ab3f689b1a4dd92e5f8339 100644
6696b9
--- a/src/ipa.c
6696b9
+++ b/src/ipa.c
6696b9
@@ -369,7 +369,7 @@ submit:
6696b9
 	}
6696b9
 	/* Add the requested CA issuer named argument. */
6696b9
 	if (issuer != NULL) {
6696b9
-		cm_submit_x_add_named_arg_s(ctx, "ca", issuer);
6696b9
+		cm_submit_x_add_named_arg_s(ctx, "cacn", issuer);
6696b9
 	}
6696b9
 	/* Tell the server to add entries for a principal if one
6696b9
 	 * doesn't exist yet. */
6696b9
@@ -389,7 +389,7 @@ submit:
6696b9
 		case 3: /* invocation error - permanent */
6696b9
 			if ((i == 3005) && (issuer != NULL)) {
6696b9
 				/* Most likely the server didn't understand the
6696b9
-				 * "ca" argument.  At least, at this
6696b9
+				 * "cacn" argument.  At least, at this
6696b9
 				 * point.  Randomly dropping arguments is not
6696b9
 				 * really an extensible solution, though. */
6696b9
 				issuer = NULL;
6696b9
-- 
6696b9
2.7.4
6696b9