request handling structure added
authorMarcel Poul <marcel.poul@cern.ch>
Wed, 18 Jan 2012 12:17:45 +0000 (12:17 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Wed, 18 Jan 2012 12:17:45 +0000 (12:17 +0000)
emi.canl.canl-c/src/canl_cred.c
emi.canl.canl-c/src/canl_cred.h

index a9d4a07..97529cf 100644 (file)
@@ -2,7 +2,7 @@
 #include "canl_cred.h"
 
 canl_err_code CANL_CALLCONV
-canl_cred_create(canl_ctx ctx, canl_cred * cred)
+canl_cred_new(canl_ctx ctx, canl_cred * cred)
 {
     glb_ctx *cc = ctx;
     creds *crd = NULL;
index ea48e2d..a42ad31 100644 (file)
@@ -24,12 +24,18 @@ typedef struct _creds {
     long c_lifetime;
     X509_EXTENSION * c_cert_ext;
     canl_cert_type c_type;
+    X509_REQ *c_req;
 } creds;
 
+typedef struct _request {
+    EVP_PKEY *c_key;
+    X509_REQ *c_req;
+} request;
+
 /* Routines to handle credentials */
 
 canl_err_code CANL_CALLCONV
-canl_cred_create(canl_ctx, canl_cred *);
+canl_cred_new(canl_ctx, canl_cred *);
 
 canl_err_code CANL_CALLCONV
 canl_cred_free(canl_ctx, canl_cred);