]> git.ipfire.org Git - thirdparty/openssl.git/blame - fuzz/mkfuzzoids.pl
sslapitest.c: With fips skip tests depending on X25519 and X448
[thirdparty/openssl.git] / fuzz / mkfuzzoids.pl
CommitLineData
8e32e1ab 1#! /usr/bin/env perl
c37b9479 2# Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
8e32e1ab 3#
0642931f 4# Licensed under the Apache License 2.0 (the "License"). You may not use
8e32e1ab
RL
5# this file except in compliance with the License. You can obtain a copy
6# in the file LICENSE in the source distribution or at
7# https://www.openssl.org/source/license.html
c37b9479
RS
8use FindBin;
9use lib "$FindBin::Bin/../util/perl";
10use OpenSSL::copyright;
8e32e1ab
RL
11
12my $obj_dat_h = $ARGV[0];
c37b9479
RS
13my $YEAR = OpenSSL::copyright::latest(($0, $obj_dat_h));
14print <<"EOF";
15# WARNING: do not edit!
16# Generated by fuzz/mkfuzzoids.pl
17#
18# Copyright 2020-$YEAR The OpenSSL Project Authors. All Rights Reserved.
19#
20# Licensed under the Apache License 2.0 (the "License"). You may not use
21# this file except in compliance with the License. You can obtain a copy
22# in the file LICENSE in the source distribution or at
23# https://www.openssl.org/source/license.html
24EOF
97d37b85 25
8e32e1ab
RL
26open IN, '<', $obj_dat_h
27 || die "Couldn't open $obj_dat_h : $!\n";
28
29while(<IN>) {
30 s|\R$||; # Better chomp
31
32 next unless m|^\s+((0x[0-9A-F][0-9A-F],)*)\s+/\*\s\[\s*\d+\]\s(OBJ_\w+)\s\*/$|;
33
34 my $OID = $1;
35 my $OBJname = $3;
36
37 $OID =~ s|0x|\\x|g;
38 $OID =~ s|,||g;
39
40 print "$OBJname=\"$OID\"\n";
41}
42close IN;