-/* crypto/bn/bn_sqrt.c */
/*
* Written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> and Bodo
* Moeller for the OpenSSL project.
*
*/
-#include "cryptlib.h"
+#include "internal/cryptlib.h"
#include "bn_lcl.h"
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
end:
if (err) {
- if (ret != NULL && ret != in) {
+ if (ret != in)
BN_clear_free(ret);
- }
ret = NULL;
}
BN_CTX_end(ctx);