Blame bin/tests/system/keymgr/19-old-keys/extra.sh
|
Packit Service |
ae04f2 |
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
Packit Service |
ae04f2 |
#
|
|
Packit Service |
ae04f2 |
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
Packit Service |
ae04f2 |
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
Packit Service |
ae04f2 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
Packit Service |
ae04f2 |
#
|
|
Packit Service |
ae04f2 |
# See the COPYRIGHT file distributed with this work for additional
|
|
Packit Service |
ae04f2 |
# information regarding copyright ownership.
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
now=`$PERL -e 'print time()."\n";'`
|
|
Packit Service |
ae04f2 |
for keyfile in K*.key; do
|
|
Packit Service |
ae04f2 |
inactive=`$SETTIME -upI $keyfile | awk '{print $2}'`
|
|
Packit Service |
ae04f2 |
if [ "$inactive" = UNSET ]; then
|
|
Packit Service |
ae04f2 |
continue
|
|
Packit Service |
ae04f2 |
elif [ "$inactive" -lt "$now" ]; then
|
|
Packit Service |
ae04f2 |
echo_d "inactive date is in the past"
|
|
Packit Service |
ae04f2 |
ret=1
|
|
Packit Service |
ae04f2 |
fi
|
|
Packit Service |
ae04f2 |
done
|