]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_apple_csp/lib/DH_utils.cpp
Security-59754.80.3.tar.gz
[apple/security.git] / OSX / libsecurity_apple_csp / lib / DH_utils.cpp
index 895e6dc0191b759409b8cf5f62619725a4db6c5f..33232c7a965166c3b6400874367d231e3715964f 100644 (file)
@@ -26,9 +26,9 @@
 #include <security_utilities/logging.h>
 #include <security_utilities/debugging.h>
 #include <opensslUtils/opensslUtils.h>
-#include <openssl/bn.h>
-#include <openssl/dh.h>
-#include <openssl/err.h>
+#include <openssl/bn_legacy.h>
+#include <openssl/dh_legacy.h>
+#include <openssl/opensslerr.h>
 
 #define dhMiscDebug(args...)   secinfo("dhMisc", ## args)
 
@@ -121,7 +121,7 @@ DH *rawCssmKeyToDh(
                // someone else's key (should never happen)
                CssmError::throwMe(CSSMERR_CSP_INVALID_ALGORITHM);
        }
-       assert(hdr->BlobType == CSSM_KEYBLOB_RAW); 
+       assert(hdr->BlobType == CSSM_KEYBLOB_RAW);
        /* validate and figure out what we're dealing with */
        switch(hdr->KeyClass) {
                case CSSM_KEYCLASS_PUBLIC_KEY: