#include <openssl/err.h>
#include <openssl/x509v3.h>
+#ifndef OPENSSL_FIPS
+
+int main(int argc, char *argv[])
+{
+ printf("No FIPS HMAC support\n");
+ return(0);
+}
+
+#else
+
static int hmac_test(BIO *err, BIO *out, BIO *in);
static int print_hmac(BIO *err, BIO *out,
unsigned char *Key, int Klen,
goto end;
}
-#ifdef OPENSSL_FIPS
if(!FIPS_mode_set(1,argv[0]))
{
ERR_print_errors(err);
goto end;
}
-#endif
if (argc == 1)
in = BIO_new_fp(stdin, BIO_NOCLOSE);
return 1;
}
-
+#endif
#include <openssl/err.h>
#include <openssl/x509v3.h>
+#ifndef OPENSSL_FIPS
+
+int main(int argc, char *argv[])
+{
+ printf("No FIPS RSA support\n");
+ return(0);
+}
+
+#else
+
static int rsa_stest(BIO *err, BIO *out, BIO *in);
static int rsa_printsig(BIO *err, BIO *out, RSA *rsa, const EVP_MD *dgst,
unsigned char *Msg, long Msglen);
goto end;
}
-#ifdef OPENSSL_FIPS
if(!FIPS_mode_set(1,argv[0]))
{
ERR_print_errors(err);
goto end;
}
-#endif
if (argc == 1)
in = BIO_new_fp(stdin, BIO_NOCLOSE);
return ret;
}
-
+#endif
#include <openssl/err.h>
#include <openssl/x509v3.h>
+#ifndef OPENSSL_FIPS
+
+int main(int argc, char *argv[])
+{
+ printf("No FIPS RSA support\n");
+ return(0);
+}
+
+#else
+
static int rsa_test(BIO *err, BIO *out, BIO *in);
static int rsa_printver(BIO *err, BIO *out,
BIGNUM *n, BIGNUM *e,
goto end;
}
-#ifdef OPENSSL_FIPS
if(!FIPS_mode_set(1,argv[0]))
{
ERR_print_errors(err);
goto end;
}
-#endif
if (argc == 1)
in = BIO_new_fp(stdin, BIO_NOCLOSE);
return ret;
}
-
+#endif