Rename int_*() functions to *_int()
authorMatt Caswell <matt@openssl.org>
Tue, 12 Apr 2016 11:20:16 +0000 (12:20 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 13 Apr 2016 07:59:03 +0000 (08:59 +0100)
There is a preference for suffixes to indicate that a function is internal
rather than prefixes. Note: the suffix is only required to disambiguate
internal functions and public symbols with the same name (but different
case)

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
38 files changed:
crypto/asn1/asn_moid.c
crypto/bio/b_sock.c
crypto/comp/c_zlib.c
crypto/conf/conf_mod.c
crypto/conf/conf_sap.c
crypto/engine/eng_cryptodev.c
crypto/engine/eng_dyn.c
crypto/engine/eng_int.h
crypto/engine/eng_lib.c
crypto/engine/eng_list.c
crypto/engine/eng_openssl.c
crypto/engine/eng_rdrand.c
crypto/err/err.c
crypto/err/err_all.c
crypto/evp/c_allc.c
crypto/evp/c_alld.c
crypto/evp/names.c
crypto/ex_data.c
crypto/include/internal/cryptlib.h
crypto/include/internal/engine.h
crypto/include/internal/evp_int.h
crypto/include/internal/objects.h
crypto/include/internal/rand.h
crypto/init.c
crypto/objects/obj_dat.c
crypto/rand/rand_lib.c
engines/afalg/e_afalg.c
engines/e_capi.c
engines/e_dasync.c
engines/e_padlock.c
include/internal/bio.h
include/internal/comp.h
include/internal/conf.h
include/internal/err.h
ssl/ssl_ciph.c
ssl/ssl_init.c
ssl/ssl_locl.h
util/libcrypto.num

index 805705056ade6dab8f8fb9fbee60999d680ef755..bebf82a55ed78af38699b358d58e45cd2aad0d12 100644 (file)
@@ -93,7 +93,7 @@ static int oid_module_init(CONF_IMODULE *md, const CONF *cnf)
 
 static void oid_module_finish(CONF_IMODULE *md)
 {
 
 static void oid_module_finish(CONF_IMODULE *md)
 {
-    int_obj_cleanup();
+    obj_cleanup_int();
 }
 
 void ASN1_add_oid_module(void)
 }
 
 void ASN1_add_oid_module(void)
index caf890780e398d48c23bbf5552a4d075404b38de..a2d0100bb368c2342bd08398886062a7e1e0ee0b 100644 (file)
@@ -205,7 +205,7 @@ int BIO_sock_init(void)
     return (1);
 }
 
     return (1);
 }
 
-void int_bio_sock_cleanup(void)
+void bio_sock_cleanup_int(void)
 {
 # ifdef OPENSSL_SYS_WINDOWS
     if (wsa_init_done) {
 {
 # ifdef OPENSSL_SYS_WINDOWS
     if (wsa_init_done) {
index 43d70ce876cc86767425ce5bb33043365fb41625..20376b6451b37a33b1a571175ebbddd9d0698600 100644 (file)
@@ -282,7 +282,7 @@ COMP_METHOD *COMP_zlib(void)
                 zlib_loaded++;
 
             if (!OPENSSL_init_crypto(OPENSSL_INIT_ZLIB, NULL)) {
                 zlib_loaded++;
 
             if (!OPENSSL_init_crypto(OPENSSL_INIT_ZLIB, NULL)) {
-                int_comp_zlib_cleanup();
+                comp_zlib_cleanup_int();
                 return meth;
             }
             if (zlib_loaded)
                 return meth;
             }
             if (zlib_loaded)
@@ -297,7 +297,7 @@ COMP_METHOD *COMP_zlib(void)
     return (meth);
 }
 
     return (meth);
 }
 
-void int_comp_zlib_cleanup(void)
+void comp_zlib_cleanup_int(void)
 {
 #ifdef ZLIB_SHARED
     if (zlib_dso != NULL)
 {
 #ifdef ZLIB_SHARED
     if (zlib_dso != NULL)
index 101d1f1e75dea6289b97d9c137c6a492c7f07a4f..cef805dfcaf1fefb70fdb396fdb4f8fb104e551f 100644 (file)
@@ -460,7 +460,7 @@ int CONF_module_add(const char *name, conf_init_func *ifunc,
         return 0;
 }
 
         return 0;
 }
 
-void int_conf_modules_free(void)
+void conf_modules_free_int(void)
 {
     CONF_modules_finish();
     CONF_modules_unload(1);
 {
     CONF_modules_finish();
     CONF_modules_unload(1);
index 929c2a32dee06388daef60370c5c582d6dd3f0eb..ab034c2111f8576780b5af6d18d701084fa4c449 100644 (file)
@@ -84,7 +84,7 @@ void OPENSSL_config(const char *config_name)
 }
 #endif
 
 }
 #endif
 
-void int_openssl_config(const char *config_name)
+void openssl_config_int(const char *config_name)
 {
     if (openssl_configured)
         return;
 {
     if (openssl_configured)
         return;
@@ -103,7 +103,7 @@ void int_openssl_config(const char *config_name)
     openssl_configured = 1;
 }
 
     openssl_configured = 1;
 }
 
-void int_openssl_no_config(void)
+void openssl_no_config_int(void)
 {
     openssl_configured = 1;
 }
 {
     openssl_configured = 1;
 }
index ab896d775a2e5194f3b2e46bef7cfe5b3ce5a339..151529c9515fada4a64f6e1dd7dba48c52b76e39 100644 (file)
@@ -63,7 +63,7 @@
 
 #ifndef HAVE_CRYPTODEV
 
 
 #ifndef HAVE_CRYPTODEV
 
-void int_engine_load_cryptodev(void)
+void engine_load_cryptodev_int(void)
 {
     /* This is a NOP on platforms without /dev/crypto */
     return;
 {
     /* This is a NOP on platforms without /dev/crypto */
     return;
@@ -141,7 +141,7 @@ static int cryptodev_dh_compute_key(unsigned char *key, const BIGNUM *pub_key,
 #endif
 static int cryptodev_ctrl(ENGINE *e, int cmd, long i, void *p,
                           void (*f) (void));
 #endif
 static int cryptodev_ctrl(ENGINE *e, int cmd, long i, void *p,
                           void (*f) (void));
-void int_engine_load_cryptodev(void);
+void engine_load_cryptodev_int(void);
 
 static const ENGINE_CMD_DEFN cryptodev_defns[] = {
     {0, NULL, NULL, 0}
 
 static const ENGINE_CMD_DEFN cryptodev_defns[] = {
     {0, NULL, NULL, 0}
@@ -1628,7 +1628,7 @@ cryptodev_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f) (void))
     return (1);
 }
 
     return (1);
 }
 
-void int_engine_load_cryptodev(void)
+void engine_load_cryptodev_int(void)
 {
     ENGINE *engine = ENGINE_new();
     int fd;
 {
     ENGINE *engine = ENGINE_new();
     int fd;
index 33c9f666a921a3dcf970428be49340055f1c08d3..f224255851a0d8aa50282925cbdadacb2f01b250 100644 (file)
@@ -295,7 +295,7 @@ static ENGINE *engine_dynamic(void)
     return ret;
 }
 
     return ret;
 }
 
-void int_engine_load_dynamic(void)
+void engine_load_dynamic_int(void)
 {
     ENGINE *toadd = engine_dynamic();
     if (!toadd)
 {
     ENGINE *toadd = engine_dynamic();
     if (!toadd)
index ca9733c7a611c96d5259036d85de7003152c6543..beaa878e36f292df9d63a0d0a7d115fa6865e127 100644 (file)
@@ -99,7 +99,7 @@ extern CRYPTO_RWLOCK *global_engine_lock;
 
 /*
  * Any code that will need cleanup operations should use these functions to
 
 /*
  * Any code that will need cleanup operations should use these functions to
- * register callbacks. int_engine_cleanup() will call all registered
+ * register callbacks. engine_cleanup_int() will call all registered
  * callbacks in order. NB: both the "add" functions assume the engine lock to
  * already be held (in "write" mode).
  */
  * callbacks in order. NB: both the "add" functions assume the engine lock to
  * already be held (in "write" mode).
  */
index 64c3b374f62c8e7e23931c480d3a29fa45d02274..d0bc716bb3cd67f12b4f5a6439d57e6814f3beff 100644 (file)
@@ -148,7 +148,7 @@ int ENGINE_free(ENGINE *e)
 /* Cleanup stuff */
 
 /*
 /* Cleanup stuff */
 
 /*
- * int_engine_cleanup() is coded such that anything that does work that will
+ * engine_cleanup_int() is coded such that anything that does work that will
  * need cleanup can register a "cleanup" callback here. That way we don't get
  * linker bloat by referring to all *possible* cleanups, but any linker bloat
  * into code "X" will cause X's cleanup function to end up here.
  * need cleanup can register a "cleanup" callback here. That way we don't get
  * linker bloat by referring to all *possible* cleanups, but any linker bloat
  * into code "X" will cause X's cleanup function to end up here.
@@ -200,7 +200,7 @@ static void engine_cleanup_cb_free(ENGINE_CLEANUP_ITEM *item)
     OPENSSL_free(item);
 }
 
     OPENSSL_free(item);
 }
 
-void int_engine_cleanup(void)
+void engine_cleanup_int(void)
 {
     if (int_cleanup_check(0)) {
         sk_ENGINE_CLEANUP_ITEM_pop_free(cleanup_stack,
 {
     if (int_cleanup_check(0)) {
         sk_ENGINE_CLEANUP_ITEM_pop_free(cleanup_stack,
index a66be7f17c349dfd65a9c4e5eb00172090a43cf5..15ba1ca33d96bcddf8ca81fb5bcd6b6dc2932955 100644 (file)
@@ -79,7 +79,7 @@ static ENGINE *engine_list_tail = NULL;
 
 /*
  * This cleanup function is only needed internally. If it should be called,
 
 /*
  * This cleanup function is only needed internally. If it should be called,
- * we register it with the "int_engine_cleanup()" stack to be called during
+ * we register it with the "engine_cleanup_int()" stack to be called during
  * cleanup.
  */
 
  * cleanup.
  */
 
index 40290e3f5aba80e25afe95cb2b3da4cb8ff69f34..fa26700d1e9d9c3912ed54903b844c24457e7bdb 100644 (file)
@@ -189,7 +189,7 @@ static ENGINE *engine_openssl(void)
     return ret;
 }
 
     return ret;
 }
 
-void int_engine_load_openssl(void)
+void engine_load_openssl_int(void)
 {
     ENGINE *toadd = engine_openssl();
     if (!toadd)
 {
     ENGINE *toadd = engine_openssl();
     if (!toadd)
index 093b7f6312e1bb11731eab0b0ef9ad404fd097ca..b62f9109edd3bd8f7f9e516702650c420eff3ae5 100644 (file)
@@ -130,7 +130,7 @@ static ENGINE *ENGINE_rdrand(void)
     return ret;
 }
 
     return ret;
 }
 
-void int_engine_load_rdrand(void)
+void engine_load_rdrand_int(void)
 {
     extern unsigned int OPENSSL_ia32cap_P[];
 
 {
     extern unsigned int OPENSSL_ia32cap_P[];
 
@@ -144,7 +144,7 @@ void int_engine_load_rdrand(void)
     }
 }
 #else
     }
 }
 #else
-void int_engine_load_rdrand(void)
+void engine_load_rdrand_int(void)
 {
 }
 #endif
 {
 }
 #endif
index bb9d5c9997a6368e8331cddfe3fd0be43d2516f8..3ee4e861d4b227c919f35a966f43e808c32cacb1 100644 (file)
@@ -447,7 +447,7 @@ void ERR_unload_strings(int lib, ERR_STRING_DATA *str)
     CRYPTO_THREAD_unlock(err_string_lock);
 }
 
     CRYPTO_THREAD_unlock(err_string_lock);
 }
 
-void int_err_free_strings(void)
+void err_free_strings_int(void)
 {
     CRYPTO_THREAD_run_once(&err_string_init, do_err_strings_init);
 
 {
     CRYPTO_THREAD_run_once(&err_string_init, do_err_strings_init);
 
index 3c8e28558848684176961df08d31d8c994cd62ad..4add7fa3c2be00dc0c686bed056d7323ab09179e 100644 (file)
@@ -88,7 +88,7 @@
 #include <openssl/async.h>
 #include <openssl/kdf.h>
 
 #include <openssl/async.h>
 #include <openssl/kdf.h>
 
-void int_err_load_crypto_strings(void)
+void err_load_crypto_strings_int(void)
 {
 #ifdef OPENSSL_FIPS
     FIPS_set_error_callbacks(ERR_put_error, ERR_add_error_vdata);
 {
 #ifdef OPENSSL_FIPS
     FIPS_set_error_callbacks(ERR_put_error, ERR_add_error_vdata);
index fe28a3aa2760311f61adc3a332d66ba311987e30..a36e2c6243fee5d1ba16dfb2b679ac523edb2e66 100644 (file)
@@ -62,7 +62,7 @@
 #include <openssl/pkcs12.h>
 #include <openssl/objects.h>
 
 #include <openssl/pkcs12.h>
 #include <openssl/objects.h>
 
-void int_openssl_add_all_ciphers(void)
+void openssl_add_all_ciphers_int(void)
 {
 
 #ifndef OPENSSL_NO_DES
 {
 
 #ifndef OPENSSL_NO_DES
index b8fa0b57b20c1f94d550edc2019bd4d0673201c4..1612c2f2ac3cd09bc9d0beefd304f3abe51a8cf7 100644 (file)
@@ -62,7 +62,7 @@
 #include <openssl/pkcs12.h>
 #include <openssl/objects.h>
 
 #include <openssl/pkcs12.h>
 #include <openssl/objects.h>
 
-void int_openssl_add_all_digests(void)
+void openssl_add_all_digests_int(void)
 {
 #ifndef OPENSSL_NO_MD4
     EVP_add_digest(EVP_md4());
 {
 #ifndef OPENSSL_NO_MD4
     EVP_add_digest(EVP_md4());
index 97f92b64abc8e078df4f2c632c92becb7f0fc5a8..501bfeead5b3973dedcfdc5a21483a903d2a048b 100644 (file)
@@ -128,7 +128,7 @@ const EVP_MD *EVP_get_digestbyname(const char *name)
     return (cp);
 }
 
     return (cp);
 }
 
-void int_evp_cleanup(void)
+void evp_cleanup_int(void)
 {
     OBJ_NAME_cleanup(OBJ_NAME_TYPE_CIPHER_METH);
     OBJ_NAME_cleanup(OBJ_NAME_TYPE_MD_METH);
 {
     OBJ_NAME_cleanup(OBJ_NAME_TYPE_CIPHER_METH);
     OBJ_NAME_cleanup(OBJ_NAME_TYPE_MD_METH);
@@ -142,7 +142,7 @@ void int_evp_cleanup(void)
     EVP_PBE_cleanup();
     if (obj_cleanup_defer == 2) {
         obj_cleanup_defer = 0;
     EVP_PBE_cleanup();
     if (obj_cleanup_defer == 2) {
         obj_cleanup_defer = 0;
-        int_obj_cleanup();
+        obj_cleanup_int();
     }
     OBJ_sigid_free();
 }
     }
     OBJ_sigid_free();
 }
index 9cca28c0295e0747416a67218eb57102cabeade2..44dc46b7823862184617402af53ce16ec0a919ca 100644 (file)
@@ -175,7 +175,7 @@ static void cleanup_cb(EX_CALLBACK *funcs)
  * called under potential race-conditions anyway (it's for program shutdown
  * after all).
  */
  * called under potential race-conditions anyway (it's for program shutdown
  * after all).
  */
-void int_crypto_cleanup_all_ex_data(void)
+void crypto_cleanup_all_ex_data_int(void)
 {
     int i;
 
 {
     int i;
 
index 31464eb2636bfd0800acd21899c8a5882f6330b5..5fc7f0dd7e8b1aaabf5f8a1fec16d1fcb9d50c71 100644 (file)
@@ -113,7 +113,7 @@ void OPENSSL_cpuid_setup(void);
 extern unsigned int OPENSSL_ia32cap_P[];
 void OPENSSL_showfatal(const char *fmta, ...);
 extern int OPENSSL_NONPIC_relocated;
 extern unsigned int OPENSSL_ia32cap_P[];
 void OPENSSL_showfatal(const char *fmta, ...);
 extern int OPENSSL_NONPIC_relocated;
-void int_crypto_cleanup_all_ex_data(void);
+void crypto_cleanup_all_ex_data_int(void);
 
 #ifdef  __cplusplus
 }
 
 #ifdef  __cplusplus
 }
index ace47f72d774addef6c65e2d5d4d5dc35999e142..fffce40140f14e2712fe1a9a093c4a03cab90b8b 100644 (file)
 
 #include <openssl/engine.h>
 
 
 #include <openssl/engine.h>
 
-void int_engine_load_openssl(void);
-void int_engine_load_cryptodev(void);
-void int_engine_load_rdrand(void);
-void int_engine_load_dynamic(void);
-void int_engine_load_padlock(void);
-void int_engine_load_capi(void);
-void int_engine_load_dasync(void);
-void int_engine_load_afalg(void);
-void int_engine_cleanup(void);
+void engine_load_openssl_int(void);
+void engine_load_cryptodev_int(void);
+void engine_load_rdrand_int(void);
+void engine_load_dynamic_int(void);
+void engine_load_padlock_int(void);
+void engine_load_capi_int(void);
+void engine_load_dasync_int(void);
+void engine_load_afalg_int(void);
+void engine_cleanup_int(void);
index 37ae985f5cf8cb414af294d0e062fc9e811916b3..ca130c26a4180c35f18a53cfc5b939abe3930a07 100644 (file)
@@ -420,6 +420,6 @@ struct evp_pkey_st {
 } /* EVP_PKEY */ ;
 
 
 } /* EVP_PKEY */ ;
 
 
-void int_openssl_add_all_ciphers(void);
-void int_openssl_add_all_digests(void);
-void int_evp_cleanup(void);
+void openssl_add_all_ciphers_int(void);
+void openssl_add_all_digests_int(void);
+void evp_cleanup_int(void);
index b69576d2b94337f4c5f9bc9f440ca4c656633de8..86000b6db2e82da6c72cd901bc3b554c98d7abf4 100644 (file)
@@ -8,4 +8,4 @@
 
 #include <openssl/objects.h>
 
 
 #include <openssl/objects.h>
 
-void int_obj_cleanup(void);
+void obj_cleanup_int(void);
index ec2bb9802793695679e842cfe45f47d4af601c44..be92fa19ec2f49a3098fd425ef077435104050a8 100644 (file)
@@ -8,4 +8,4 @@
 
 #include <openssl/rand.h>
 
 
 #include <openssl/rand.h>
 
-void int_rand_cleanup(void);
+void rand_cleanup_int(void);
index 1802d0029c305e8e077d132d6b20561ed4714d00..d9f40001a2491a798d0304bb258377e1df4d80db 100644 (file)
@@ -144,9 +144,9 @@ static void ossl_init_load_crypto_strings(void)
 #if !defined(OPENSSL_NO_ERR) && !defined(OPENSSL_NO_AUTOERRINIT)
 # ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_load_crypto_strings: "
 #if !defined(OPENSSL_NO_ERR) && !defined(OPENSSL_NO_AUTOERRINIT)
 # ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_load_crypto_strings: "
-                    "int_err_load_crypto_strings()\n");
+                    "err_load_crypto_strings_int()\n");
 # endif
 # endif
-    int_err_load_crypto_strings();
+    err_load_crypto_strings_int();
 #endif
     load_crypto_strings_inited = 1;
 }
 #endif
     load_crypto_strings_inited = 1;
 }
@@ -161,9 +161,9 @@ static void ossl_init_add_all_ciphers(void)
 #ifndef OPENSSL_NO_AUTOALGINIT
 # ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_add_all_ciphers: "
 #ifndef OPENSSL_NO_AUTOALGINIT
 # ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_add_all_ciphers: "
-                    "int_openssl_add_all_ciphers()\n");
+                    "openssl_add_all_ciphers_int()\n");
 # endif
 # endif
-    int_openssl_add_all_ciphers();
+    openssl_add_all_ciphers_int();
 # ifndef OPENSSL_NO_ENGINE
 #  if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
     ENGINE_setup_bsd_cryptodev();
 # ifndef OPENSSL_NO_ENGINE
 #  if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
     ENGINE_setup_bsd_cryptodev();
@@ -182,9 +182,9 @@ static void ossl_init_add_all_digests(void)
 #ifndef OPENSSL_NO_AUTOALGINIT
 # ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_add_all_digests: "
 #ifndef OPENSSL_NO_AUTOALGINIT
 # ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_add_all_digests: "
-                    "int_openssl_add_all_digests()\n");
+                    "openssl_add_all_digests()\n");
 # endif
 # endif
-    int_openssl_add_all_digests();
+    openssl_add_all_digests_int();
 # ifndef OPENSSL_NO_ENGINE
 #  if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
     ENGINE_setup_bsd_cryptodev();
 # ifndef OPENSSL_NO_ENGINE
 #  if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
     ENGINE_setup_bsd_cryptodev();
@@ -206,19 +206,19 @@ static void ossl_init_config(void)
 {
 #ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr,
 {
 #ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr,
-            "OPENSSL_INIT: ossl_init_config: int_openssl_config(%s)\n",
+            "OPENSSL_INIT: ossl_init_config: openssl_config(%s)\n",
             config_filename==NULL?"NULL":config_filename);
 #endif
             config_filename==NULL?"NULL":config_filename);
 #endif
-    int_openssl_config(config_filename);
+    openssl_config_int(config_filename);
     config_inited = 1;
 }
 static void ossl_init_no_config(void)
 {
 #ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr,
     config_inited = 1;
 }
 static void ossl_init_no_config(void)
 {
 #ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr,
-            "OPENSSL_INIT: ossl_init_config: int_openssl_no_config()\n");
+            "OPENSSL_INIT: ossl_init_config: openssl_no_config_int()\n");
 #endif
 #endif
-    int_openssl_no_config();
+    openssl_no_config_int();
     config_inited = 1;
 }
 
     config_inited = 1;
 }
 
@@ -239,9 +239,9 @@ static void ossl_init_engine_openssl(void)
 {
 # ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_openssl: "
 {
 # ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_openssl: "
-                    "int_engine_load_openssl()\n");
+                    "engine_load_openssl_int()\n");
 # endif
 # endif
-    int_engine_load_openssl();
+    engine_load_openssl_int();
 }
 # if !defined(OPENSSL_NO_HW) && \
     (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV))
 }
 # if !defined(OPENSSL_NO_HW) && \
     (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV))
@@ -250,9 +250,9 @@ static void ossl_init_engine_cryptodev(void)
 {
 #  ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_cryptodev: "
 {
 #  ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_cryptodev: "
-                    "int_engine_load_cryptodev()\n");
+                    "engine_load_cryptodev_int()\n");
 #  endif
 #  endif
-    int_engine_load_cryptodev();
+    engine_load_cryptodev_int();
 }
 # endif
 
 }
 # endif
 
@@ -262,9 +262,9 @@ static void ossl_init_engine_rdrand(void)
 {
 #  ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_rdrand: "
 {
 #  ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_rdrand: "
-                    "int_engine_load_rdrand()\n");
+                    "engine_load_rdrand_int()\n");
 #  endif
 #  endif
-    int_engine_load_rdrand();
+    engine_load_rdrand_int();
 }
 # endif
 static CRYPTO_ONCE engine_dynamic = CRYPTO_ONCE_STATIC_INIT;
 }
 # endif
 static CRYPTO_ONCE engine_dynamic = CRYPTO_ONCE_STATIC_INIT;
@@ -272,9 +272,9 @@ static void ossl_init_engine_dynamic(void)
 {
 # ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_dynamic: "
 {
 # ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_dynamic: "
-                    "int_engine_load_dynamic()\n");
+                    "engine_load_dynamic_int()\n");
 # endif
 # endif
-    int_engine_load_dynamic();
+    engine_load_dynamic_int();
 }
 # ifndef OPENSSL_NO_STATIC_ENGINE
 #  if !defined(OPENSSL_NO_HW) && !defined(OPENSSL_NO_HW_PADLOCK)
 }
 # ifndef OPENSSL_NO_STATIC_ENGINE
 #  if !defined(OPENSSL_NO_HW) && !defined(OPENSSL_NO_HW_PADLOCK)
@@ -283,9 +283,9 @@ static void ossl_init_engine_padlock(void)
 {
 #   ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_padlock: "
 {
 #   ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_padlock: "
-                    "int_engine_load_padlock()\n");
+                    "engine_load_padlock_int()\n");
 #   endif
 #   endif
-    int_engine_load_padlock();
+    engine_load_padlock_int();
 }
 #  endif
 #  if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG)
 }
 #  endif
 #  if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG)
@@ -294,9 +294,9 @@ static void ossl_init_engine_capi(void)
 {
 #   ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_capi: "
 {
 #   ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_capi: "
-                    "int_engine_load_capi()\n");
+                    "engine_load_capi_int()\n");
 #   endif
 #   endif
-    int_engine_load_capi();
+    engine_load_capi_int();
 }
 #  endif
 static CRYPTO_ONCE engine_dasync = CRYPTO_ONCE_STATIC_INIT;
 }
 #  endif
 static CRYPTO_ONCE engine_dasync = CRYPTO_ONCE_STATIC_INIT;
@@ -304,9 +304,9 @@ static void ossl_init_engine_dasync(void)
 {
 # ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_dasync: "
 {
 # ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_dasync: "
-                    "int_engine_load_dasync()\n");
+                    "engine_load_dasync_int()\n");
 # endif
 # endif
-    int_engine_load_dasync();
+    engine_load_dasync_int();
 }
 #  if !defined(OPENSSL_NO_AFALGENG)
 static CRYPTO_ONCE engine_afalg = CRYPTO_ONCE_STATIC_INIT;
 }
 #  if !defined(OPENSSL_NO_AFALGENG)
 static CRYPTO_ONCE engine_afalg = CRYPTO_ONCE_STATIC_INIT;
@@ -314,9 +314,9 @@ static void ossl_init_engine_afalg(void)
 {
 #   ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_afalg: "
 {
 #   ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: ossl_init_engine_afalg: "
-                    "int_engine_load_afalg()\n");
+                    "engine_load_afalg_int()\n");
 #   endif
 #   endif
-    int_engine_load_afalg();
+    engine_load_afalg_int();
 }
 #  endif
 # endif
 }
 #  endif
 # endif
@@ -429,9 +429,9 @@ void OPENSSL_cleanup(void)
     if (zlib_inited) {
 #ifdef OPENSSL_INIT_DEBUG
         fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
     if (zlib_inited) {
 #ifdef OPENSSL_INIT_DEBUG
         fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
-                        "int_comp_zlib_cleanup()\n");
+                        "comp_zlib_cleanup_int()\n");
 #endif
 #endif
-        int_comp_zlib_cleanup();
+        comp_zlib_cleanup_int();
     }
 #endif
 
     }
 #endif
 
@@ -446,51 +446,51 @@ void OPENSSL_cleanup(void)
     if (load_crypto_strings_inited) {
 #ifdef OPENSSL_INIT_DEBUG
         fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
     if (load_crypto_strings_inited) {
 #ifdef OPENSSL_INIT_DEBUG
         fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
-                        "int_err_free_strings()\n");
+                        "err_free_strings_int()\n");
 #endif
 #endif
-        int_err_free_strings();
+        err_free_strings_int();
     }
 
     CRYPTO_THREAD_cleanup_local(&threadstopkey);
 
 #ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
     }
 
     CRYPTO_THREAD_cleanup_local(&threadstopkey);
 
 #ifdef OPENSSL_INIT_DEBUG
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
-                    "int_rand_cleanup()\n");
+                    "rand_cleanup_int()\n");
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
-                    "int_conf_modules_free()\n");
+                    "conf_modules_free_int()\n");
 #ifndef OPENSSL_NO_ENGINE
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
 #ifndef OPENSSL_NO_ENGINE
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
-                    "int_engine_cleanup()\n");
+                    "engine_cleanup_int()\n");
 #endif
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
 #endif
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
-                    "int_crypto_cleanup_all_ex_data()\n");
+                    "crypto_cleanup_all_ex_data_int()\n");
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
-                    "int_bio_sock_cleanup()\n");
+                    "bio_sock_cleanup_int()\n");
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
-                    "int_evp_cleanup()\n");
+                    "evp_cleanup_int()\n");
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
     fprintf(stderr, "OPENSSL_INIT: OPENSSL_cleanup: "
-                    "int_obj_cleanup()\n");
+                    "obj_cleanup_int()\n");
 #endif
     /*
      * Note that cleanup order is important:
 #endif
     /*
      * Note that cleanup order is important:
-     * - rand_cleanup_intern could call an ENINGE's RAND cleanup function so
-     * must be called before int_engine_cleanup()
+     * - rand_cleanup_int could call an ENINGE's RAND cleanup function so
+     * must be called before engine_cleanup_int()
      * - ENGINEs use CRYPTO_EX_DATA and therefore, must be cleaned up
      * before the ex data handlers are wiped in CRYPTO_cleanup_all_ex_data().
      * - ENGINEs use CRYPTO_EX_DATA and therefore, must be cleaned up
      * before the ex data handlers are wiped in CRYPTO_cleanup_all_ex_data().
-     * - int_conf_modules_free() can end up in ENGINE code so must be called
-     * before int_engine_cleanup()
+     * - conf_modules_free_int() can end up in ENGINE code so must be called
+     * before engine_cleanup_int()
      */
      */
-    int_rand_cleanup();
-    int_conf_modules_free();
+    rand_cleanup_int();
+    conf_modules_free_int();
 #ifndef OPENSSL_NO_ENGINE
 #ifndef OPENSSL_NO_ENGINE
-    int_engine_cleanup();
+    engine_cleanup_int();
 #endif
 #endif
-    int_crypto_cleanup_all_ex_data();
+    crypto_cleanup_all_ex_data_int();
 #ifndef OPENSSL_NO_SOCK
 #ifndef OPENSSL_NO_SOCK
-    int_bio_sock_cleanup();
+    bio_sock_cleanup_int();
 #endif
 #endif
-    int_evp_cleanup();
-    int_obj_cleanup();
+    evp_cleanup_int();
+    obj_cleanup_int();
     base_inited = 0;
 }
 
     base_inited = 0;
 }
 
index 48dbcde8ccc271127996708843bdab819c9bb452..24e684acd4c285d8e157cf5a049b991a490b8954 100644 (file)
@@ -210,7 +210,7 @@ void check_defer(int nid)
         obj_cleanup_defer = 1;
 }
 
         obj_cleanup_defer = 1;
 }
 
-void int_obj_cleanup(void)
+void obj_cleanup_int(void)
 {
     if (obj_cleanup_defer) {
         obj_cleanup_defer = 2;
 {
     if (obj_cleanup_defer) {
         obj_cleanup_defer = 2;
index b19074c1d80b2090fb7a017976177db1e2a224d0..98711135912f52582174f89c0e32def1587a7d9c 100644 (file)
@@ -125,7 +125,7 @@ int RAND_set_rand_engine(ENGINE *engine)
 }
 #endif
 
 }
 #endif
 
-void int_rand_cleanup(void)
+void rand_cleanup_int(void)
 {
     const RAND_METHOD *meth = RAND_get_rand_method();
     if (meth && meth->cleanup)
 {
     const RAND_METHOD *meth = RAND_get_rand_method();
     if (meth && meth->cleanup)
index 18daa6e7f83e19b948115a17dc2fa9f736bb8a24..830e88b3024a16fea903ac395fb194759ebd76e8 100644 (file)
 #define ALG_MAX_SALG_TYPE       14
 
 # ifdef OPENSSL_NO_DYNAMIC_ENGINE
 #define ALG_MAX_SALG_TYPE       14
 
 # ifdef OPENSSL_NO_DYNAMIC_ENGINE
-void int_engine_load_afalg(void);
+void engine_load_afalg_int(void);
 # endif
 
 /* Local Linkage Functions */
 # endif
 
 /* Local Linkage Functions */
@@ -816,7 +816,7 @@ static ENGINE *engine_afalg(void)
     return ret;
 }
 
     return ret;
 }
 
-void int_engine_load_afalg(void)
+void engine_load_afalg_int(void)
 {
     ENGINE *toadd;
 
 {
     ENGINE *toadd;
 
index 20d551895a7337440c51bee8cbdfe106d4ad7915..d2b24d540e426e782b5a2c0a8f63903781a14bad 100644 (file)
@@ -191,7 +191,7 @@ static int cert_select_simple(ENGINE *e, SSL *ssl, STACK_OF(X509) *certs);
 static int cert_select_dialog(ENGINE *e, SSL *ssl, STACK_OF(X509) *certs);
 # endif
 
 static int cert_select_dialog(ENGINE *e, SSL *ssl, STACK_OF(X509) *certs);
 # endif
 
-void int_engine_load_capi(void);
+void engine_load_capi_int(void);
 
 typedef PCCERT_CONTEXT(WINAPI *CERTDLG) (HCERTSTORE, HWND, LPCWSTR,
                                          LPCWSTR, DWORD, DWORD, void *);
 
 typedef PCCERT_CONTEXT(WINAPI *CERTDLG) (HCERTSTORE, HWND, LPCWSTR,
                                          LPCWSTR, DWORD, DWORD, void *);
@@ -1911,8 +1911,8 @@ OPENSSL_EXPORT
 
 IMPLEMENT_DYNAMIC_CHECK_FN()
 # else
 
 IMPLEMENT_DYNAMIC_CHECK_FN()
 # else
-void int_engine_load_capi(void);
-void int_engine_load_capi(void)
+void engine_load_capi_int(void);
+void engine_load_capi_int(void)
 {
 }
 # endif
 {
 }
 # endif
index 61559544d82752226e2e74682109e0a080c03dc8..27a56023641994c4769f651b982fcdd15f62dab1 100644 (file)
@@ -86,7 +86,7 @@ static const char *engine_dasync_name = "Dummy Async engine support";
 static int dasync_destroy(ENGINE *e);
 static int dasync_init(ENGINE *e);
 static int dasync_finish(ENGINE *e);
 static int dasync_destroy(ENGINE *e);
 static int dasync_init(ENGINE *e);
 static int dasync_finish(ENGINE *e);
-void int_engine_load_dasync(void);
+void engine_load_dasync_int(void);
 
 
 /* Set up digests. Just SHA1 for now */
 
 
 /* Set up digests. Just SHA1 for now */
@@ -347,7 +347,7 @@ static ENGINE *engine_dasync(void)
     return ret;
 }
 
     return ret;
 }
 
-void int_engine_load_dasync(void)
+void engine_load_dasync_int(void)
 {
     ENGINE *toadd = engine_dasync();
     if (!toadd)
 {
     ENGINE *toadd = engine_dasync();
     if (!toadd)
index d8f90a7f3730a67c83f4648a3e95c1a1530087ce..5bde91d65b38ce70326d2b8196b6fd18f16d7e31 100644 (file)
@@ -111,8 +111,8 @@ static ENGINE *ENGINE_padlock(void);
 #  endif
 
 #  ifdef OPENSSL_NO_DYNAMIC_ENGINE
 #  endif
 
 #  ifdef OPENSSL_NO_DYNAMIC_ENGINE
-void int_engine_load_padlock(void);
-void int_engine_load_padlock(void)
+void engine_load_padlock_int(void);
+void engine_load_padlock_int(void)
 {
 /* On non-x86 CPUs it just returns. */
 #   ifdef COMPILE_HW_PADLOCK
 {
 /* On non-x86 CPUs it just returns. */
 #   ifdef COMPILE_HW_PADLOCK
index 521285a7b6659dd7b6becc52585e8ecd0a847042..e62580b003a6e5e919f851c0c0ece3aeef96b644 100644 (file)
@@ -67,4 +67,4 @@ struct bio_method_st {
     long (*callback_ctrl) (BIO *, int, bio_info_cb *);
 };
 
     long (*callback_ctrl) (BIO *, int, bio_info_cb *);
 };
 
-void int_bio_sock_cleanup(void);
+void bio_sock_cleanup_int(void);
index e5de19708e2a2d57d4c8f88eb39a7a8a07960fe4..34bf147325807555bb0564822e70878acd03f2db 100644 (file)
@@ -8,4 +8,4 @@
 
 #include <openssl/comp.h>
 
 
 #include <openssl/comp.h>
 
-void int_comp_zlib_cleanup(void);
+void comp_zlib_cleanup_int(void);
index 4c3946d9200f03ff8af3a9cf05ee013e43768605..2d48daf5d05954c6730242d6118e3d1c461fcec5 100644 (file)
@@ -51,9 +51,9 @@ struct ossl_init_settings_st {
     char *config_name;
 };
 
     char *config_name;
 };
 
-void int_openssl_config(const char *config_name);
-void int_openssl_no_config(void);
-void int_conf_modules_free(void);
+void openssl_config_int(const char *config_name);
+void openssl_no_config_int(void);
+void conf_modules_free_int(void);
 
 #ifdef __cplusplus
 }
 
 #ifdef __cplusplus
 }
index 98ba4944dbf913729a44ed6f8c1d7af26b002524..f9aa2b2120408dab2420402cbd061bbaec21a7cc 100644 (file)
@@ -58,7 +58,7 @@
 #ifndef INTERNAL_ERR_H
 # define INTERNAL_ERR_H
 
 #ifndef INTERNAL_ERR_H
 # define INTERNAL_ERR_H
 
-void int_err_load_crypto_strings(void);
-void int_err_free_strings(void);
+void err_load_crypto_strings_int(void);
+void err_free_strings_int(void);
 
 #endif
 
 #endif
index 100e95e30e9647b81164a413126e2b7b68b0d1b7..d0d9d88e1e39ab58420a4637bc3db338f2702869 100644 (file)
@@ -1908,7 +1908,7 @@ static void cmeth_free(SSL_COMP *cm)
     OPENSSL_free(cm);
 }
 
     OPENSSL_free(cm);
 }
 
-void int_ssl_comp_free_compression_methods(void)
+void ssl_comp_free_compression_methods_int(void)
 {
     STACK_OF(SSL_COMP) *old_meths = ssl_comp_methods;
     ssl_comp_methods = NULL;
 {
     STACK_OF(SSL_COMP) *old_meths = ssl_comp_methods;
     ssl_comp_methods = NULL;
index c52d48b5431ac2a0881adf351a801a83b70ca8f9..54892b9ac892a1aec06f8962907e1e2d8d5201c1 100644 (file)
@@ -198,24 +198,24 @@ static void ssl_library_stop(void)
 #ifndef OPENSSL_NO_COMP
 #ifdef OPENSSL_INIT_DEBUG
         fprintf(stderr, "OPENSSL_INIT: ssl_library_stop: "
 #ifndef OPENSSL_NO_COMP
 #ifdef OPENSSL_INIT_DEBUG
         fprintf(stderr, "OPENSSL_INIT: ssl_library_stop: "
-                        "int_ssl_comp_free_compression_methods()\n");
+                        "ssl_comp_free_compression_methods_int()\n");
 #endif
 #endif
-        int_ssl_comp_free_compression_methods();
+        ssl_comp_free_compression_methods_int();
 #endif
     }
 
     if (ssl_strings_inited) {
 #ifdef OPENSSL_INIT_DEBUG
         fprintf(stderr, "OPENSSL_INIT: ssl_library_stop: "
 #endif
     }
 
     if (ssl_strings_inited) {
 #ifdef OPENSSL_INIT_DEBUG
         fprintf(stderr, "OPENSSL_INIT: ssl_library_stop: "
-                        "int_err_free_strings()\n");
+                        "err_free_strings_int()\n");
 #endif
         /*
          * If both crypto and ssl error strings are inited we will end up
 #endif
         /*
          * If both crypto and ssl error strings are inited we will end up
-         * calling int_err_free_strings() twice - but that's ok. The second
+         * calling err_free_strings_int() twice - but that's ok. The second
          * time will be a no-op. It's easier to do that than to try and track
          * between the two libraries whether they have both been inited.
          */
          * time will be a no-op. It's easier to do that than to try and track
          * between the two libraries whether they have both been inited.
          */
-        int_err_free_strings();
+        err_free_strings_int();
     }
 }
 
     }
 }
 
index adc5924785d482f135d75ce50e743d28ef7aea4d..50e0d3900af15f3bdb3eab7191d5060d8c5e131c 100644 (file)
@@ -2195,7 +2195,7 @@ __owur int custom_ext_add(SSL *s, int server,
 __owur int custom_exts_copy(custom_ext_methods *dst, const custom_ext_methods *src);
 void custom_exts_free(custom_ext_methods *exts);
 
 __owur int custom_exts_copy(custom_ext_methods *dst, const custom_ext_methods *src);
 void custom_exts_free(custom_ext_methods *exts);
 
-void int_ssl_comp_free_compression_methods(void);
+void ssl_comp_free_compression_methods_int(void);
 
 # else
 
 
 # else
 
index 6caae5de7d4fa1f413ef0c776a90ccd918b80370..2b4d0fb40c087609945d91cfb760ced496d63267 100644 (file)
@@ -4196,5 +4196,5 @@ DH_meth_set_bn_mod_exp                  4066      1_1_0   EXIST::FUNCTION:DH
 DH_meth_set_generate_key                4067   1_1_0   EXIST::FUNCTION:DH
 DH_meth_free                            4068   1_1_0   EXIST::FUNCTION:DH
 DH_meth_get_generate_key                4069   1_1_0   EXIST::FUNCTION:DH
 DH_meth_set_generate_key                4067   1_1_0   EXIST::FUNCTION:DH
 DH_meth_free                            4068   1_1_0   EXIST::FUNCTION:DH
 DH_meth_get_generate_key                4069   1_1_0   EXIST::FUNCTION:DH
-int_err_load_crypto_strings             4070   1_1_0   EXIST::FUNCTION:
-int_err_free_strings                    4071   1_1_0   EXIST::FUNCTION:
+err_load_crypto_strings_int             4070   1_1_0   EXIST::FUNCTION:
+err_free_strings_int                    4071   1_1_0   EXIST::FUNCTION: