Comment "secure memcmp" implementation
[openssl.git] / engines / e_ubsec.c
index ef070b04db93992dbf3bd7bd705ed6b7358a5d3f..dab8d12e3faa52e910bbe3bd6ed05e8ca56fee91 100644 (file)
@@ -1,4 +1,3 @@
-/* crypto/engine/hw_ubsec.c */
 /*
  * Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL project
  * 2000. Cloned shamelessly by Joe Tardo.
@@ -265,7 +264,7 @@ static int bind_helper(ENGINE *e)
 static ENGINE *engine_ubsec(void)
 {
     ENGINE *ret = ENGINE_new();
-    if (!ret)
+    if (ret == NULL)
         return NULL;
     if (!bind_helper(ret)) {
         ENGINE_free(ret);
@@ -346,7 +345,7 @@ static void free_UBSEC_LIBNAME(void)
 static long set_UBSEC_LIBNAME(const char *name)
 {
     free_UBSEC_LIBNAME();
-    return (((UBSEC_LIBNAME = BUF_strdup(name)) != NULL) ? 1 : 0);
+    return (((UBSEC_LIBNAME = OPENSSL_strdup(name)) != NULL) ? 1 : 0);
 }
 
 static const char *UBSEC_F1 = "ubsec_bytes_to_bits";