OPENSSL_SYS_WIN32 is important so util/mkdef.pl can detect it
[oweals/openssl.git] / crypto / bn / bn_prime.c
index 5bfc0b682be598c32e52ab65d7ee98dae6cef60b..918b9237c6e2a855cd40dfb6cb7af71f7dbc54c8 100644 (file)
@@ -56,7 +56,7 @@
  * [including the GNU Public Licence.]
  */
 /* ====================================================================
- * Copyright (c) 1998-2000 The OpenSSL Project.  All rights reserved.
+ * Copyright (c) 1998-2001 The OpenSSL Project.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -226,7 +226,7 @@ int BN_is_prime_fasttest(const BIGNUM *a, int checks,
        BN_MONT_CTX *mont = NULL;
        const BIGNUM *A = NULL;
 
-       if (BN_cmp(a, BN_value_one) <= 0)
+       if (BN_cmp(a, BN_value_one()) <= 0)
                return 0;
        
        if (checks == BN_prime_checks)