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

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