[rs-commit] r43 - /redwax-tool/trunk/redwax_p11kit.c

rs-commit at redwax.eu rs-commit at redwax.eu
Fri Nov 19 15:09:25 CET 2021


Author: minfrin at redwax.eu
Date: Fri Nov 19 15:09:24 2021
New Revision: 43

Log:
Make it clear we're writing from the outside.

Modified:
    redwax-tool/trunk/redwax_p11kit.c

Modified: redwax-tool/trunk/redwax_p11kit.c
==============================================================================
--- redwax-tool/trunk/redwax_p11kit.c	(original)
+++ redwax-tool/trunk/redwax_p11kit.c	Fri Nov 19 15:09:24 2021
@@ -353,7 +353,7 @@
     attr->ulValueLen = ulValueLen;
 }
 
-static apr_status_t redwax_pkcs11_create_cert(redwax_tool_t *r,
+static apr_status_t redwax_pkcs11_write_cert(redwax_tool_t *r,
         P11KitUri *parsed, CK_FUNCTION_LIST *module, CK_TOKEN_INFO *tokenInfo,
         CK_SESSION_HANDLE session, const redwax_certificate_t *cert,
         const char *name)
@@ -533,7 +533,7 @@
     return APR_SUCCESS;
 }
 
-static apr_status_t redwax_pkcs11_create_key(redwax_tool_t *r,
+static apr_status_t redwax_pkcs11_write_key(redwax_tool_t *r,
         P11KitUri *parsed, CK_FUNCTION_LIST *module, CK_TOKEN_INFO *tokenInfo,
         CK_SESSION_HANDLE session, const redwax_key_t *key)
 {
@@ -955,7 +955,7 @@
 
             redwax_print_error(r, "pkcs11-out: key\n");
 
-            status = redwax_pkcs11_create_key(r, parsed, module, tokenInfo,
+            status = redwax_pkcs11_write_key(r, parsed, module, tokenInfo,
                     session, key);
             if (status != APR_SUCCESS) {
                 return status;
@@ -976,7 +976,7 @@
             redwax_print_error(r, "pkcs11-out: certificate: %s\n",
                     cert->common.subject);
 
-            status = redwax_pkcs11_create_cert(r, parsed, module, tokenInfo,
+            status = redwax_pkcs11_write_cert(r, parsed, module, tokenInfo,
                     session, cert, name);
             if (status != APR_SUCCESS) {
                 return status;
@@ -998,7 +998,7 @@
             redwax_print_error(r, "pkcs11-out: intermediate: %s\n",
                     cert->common.subject);
 
-            status = redwax_pkcs11_create_cert(r, parsed, module, tokenInfo,
+            status = redwax_pkcs11_write_cert(r, parsed, module, tokenInfo,
                     session, cert, name);
             if (status != APR_SUCCESS) {
                 return status;
@@ -1016,7 +1016,7 @@
             redwax_print_error(r, "pkcs11-out: trusted: %s\n",
                     cert->common.subject);
 
-            status = redwax_pkcs11_create_cert(r, parsed, module, tokenInfo,
+            status = redwax_pkcs11_write_cert(r, parsed, module, tokenInfo,
                     session, cert, name);
             if (status != APR_SUCCESS) {
                 return status;



More information about the rs-commit mailing list