Rename various configuration handling functions.
authorjsing <jsing@openbsd.org>
Sun, 13 Jul 2014 22:31:42 +0000 (22:31 +0000)
committerjsing <jsing@openbsd.org>
Sun, 13 Jul 2014 22:31:42 +0000 (22:31 +0000)
Requested by and discussed with tedu@.

lib/libressl/ressl.h
lib/libressl/ressl_config.c

index d044cd4..a1d2200 100644 (file)
@@ -27,13 +27,14 @@ const char *ressl_error(struct ressl *ctx);
 struct ressl_config *ressl_config_new(void);
 void ressl_config_free(struct ressl_config *config);
 
-void ressl_config_ca_file(struct ressl_config *config, char *ca_file);
-void ressl_config_ca_path(struct ressl_config *config, char *ca_path);
-void ressl_config_ciphers(struct ressl_config *config, char *ciphers);
-void ressl_config_verify_depth(struct ressl_config *config, int verify_depth);
-
-void ressl_config_insecure(struct ressl_config *config);
-void ressl_config_secure(struct ressl_config *config);
+void ressl_config_set_ca_file(struct ressl_config *config, char *ca_file);
+void ressl_config_set_ca_path(struct ressl_config *config, char *ca_path);
+void ressl_config_set_ciphers(struct ressl_config *config, char *ciphers);
+void ressl_config_set_verify_depth(struct ressl_config *config,
+    int verify_depth);
+
+void ressl_config_insecure_no_verify(struct ressl_config *config);
+void ressl_config_verify(struct ressl_config *config);
 
 struct ressl *ressl_new(struct ressl_config *config);
 void ressl_reset(struct ressl *ctx);
index 3932b96..ebca78e 100644 (file)
@@ -51,37 +51,37 @@ ressl_config_free(struct ressl_config *config)
 }
 
 void
-ressl_config_ca_file(struct ressl_config *config, char *ca_file)
+ressl_config_set_ca_file(struct ressl_config *config, char *ca_file)
 {
        config->ca_file = ca_file;
 }
 
 void
-ressl_config_ca_path(struct ressl_config *config, char *ca_path)
+ressl_config_set_ca_path(struct ressl_config *config, char *ca_path)
 {
        config->ca_path = ca_path;
 }
 
 void
-ressl_config_ciphers(struct ressl_config *config, char *ciphers)
+ressl_config_set_ciphers(struct ressl_config *config, char *ciphers)
 {
        config->ciphers = ciphers;
 }
 
 void
-ressl_config_insecure(struct ressl_config *config)
+ressl_config_insecure_no_verify(struct ressl_config *config)
 {
        config->verify = 0;
 }
 
 void
-ressl_config_secure(struct ressl_config *config)
+ressl_config_verify(struct ressl_config *config)
 {
        config->verify = 1;
 }
 
 void
-ressl_config_verify_depth(struct ressl_config *config, int verify_depth)
+ressl_config_set_verify_depth(struct ressl_config *config, int verify_depth)
 {
        config->verify_depth = verify_depth;
 }