prereq.sh revision e20788e1216ed720aefa84f3295f7899d9f28c22
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt#!/bin/sh
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt# Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Permission to use, copy, modify, and/or distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# purpose with or without fee is hereby granted, provided that the above
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt# copyright notice and this permission notice appear in all copies.
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt#
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt# PERFORMANCE OF THIS SOFTWARE.
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt# $Id: prereq.sh,v 1.3 2010/06/08 23:50:24 tbox Exp $
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt
c9e976dc43070e2ed87988eeabed71195fab88baEvan HuntSYSTEMTESTTOP=..
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt. $SYSTEMTESTTOP/conf.sh
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt../../../tools/genrandom 400 random.data
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt
c9e976dc43070e2ed87988eeabed71195fab88baEvan Huntecho rsaonly > supported
c9e976dc43070e2ed87988eeabed71195fab88baEvan Huntexit 0
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt
c9e976dc43070e2ed87988eeabed71195fab88baEvan Huntrsafail=0 eccfail=0
8aa098c6334de11c8fd117d30851cc457813c410Mark Andrews
c9e976dc43070e2ed87988eeabed71195fab88baEvan Hunt$KEYGEN -q -r random.data foo > /dev/null 2>&1 || rsafail=1
rm -f Kfoo*
if [ $rsafail = 1 ]; then
echo "I:This test requires OpenSSL built with PKCS#11 support." >&2
exit 255
fi