Return Certificate Signing Request(CSR) contents

Add support to return the CSR data from the file created by
GenerateCSR request.

CSRRead class implements CSR interface. InternalFailure
exception is thrown to the caller if CSR file does not exist
or for any read errors.

Change-Id: I20ddeb9570962bf04917c1b0e3a52c8f34f5efcd
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
diff --git a/configure.ac b/configure.ac
index 2e7cbcf..5bf1a40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -119,6 +119,10 @@
 AS_IF([test "x$OBJPATH" == "x"], [OBJPATH="/xyz/openbmc_project/certs"])
 AC_DEFINE_UNQUOTED([OBJPATH], ["$OBJPATH"], [The certificate manager D-Bus root])
 
+AC_ARG_VAR(CSR_FILE_NAME, [The CSR file.])
+AS_IF([test "x$CSR_FILE_NAME" == "x"], [CSR_FILE_NAME="domain.csr"])
+AC_DEFINE_UNQUOTED([CSR_FILE_NAME], ["$CSR_FILE_NAME"], [The CSR file])
+
 # Create configured output
 AC_CONFIG_FILES([Makefile test/Makefile])
 AC_OUTPUT