Lines Matching refs:lib
147 my $lib = $1;
151 $hpubinc{$lib} = $pubhdr;
152 $libpubinc{$pubhdr} = $lib;
153 $hprivinc{$lib} = $privhdr;
154 $libprivinc{$privhdr} = $lib;
155 $cskip{$err} = $lib;
156 $errorfile{$lib} = $err;
158 $rmax{$lib} = 100;
159 $rassigned{$lib} = ":";
160 $rnew{$lib} = 0;
210 my $lib = $name;
211 $lib =~ s/^((?:OSSL_|OPENSSL_)?[^_]{2,}).*$/$1/;
212 $lib = "SSL" if $lib =~ /TLS/;
213 if ( !defined $errorfile{$lib} ) {
218 next if $errorfile{$lib} eq 'NONE';
220 die "$lib reason code $code collision at $name\n"
221 if $rassigned{$lib} =~ /:$code:/;
222 $rassigned{$lib} .= "$code:";
224 $rmax{$lib} = $code if $code > $rmax{$lib};
236 foreach my $lib ( sort keys %rmax ) {
237 print STDERR "Reason codes for ${lib}:\n";
238 if ( $rassigned{$lib} =~ m/^:(.*):$/ ) {
291 foreach my $lib ( keys %errorfile ) {
292 next if ! $rnew{$lib} && ! $rebuild;
293 next if scalar keys %modules > 0 && !$modules{$lib};
295 print STDERR "$lib: $rnew{$lib} new reasons\n" if $rnew{$lib};
302 my @reasons = sort grep( /^${lib}_/, keys %rcodes );
312 ($lib ne "SSL" && $lib ne "ASYNC" && $lib ne "DSO"
313 && (grep { $lib eq uc $_ } @disablables, @disablables_int));
317 if ($hprivinc{$lib} ne 'NONE') {
318 my $hfile = $hprivinc{$lib};
355 # ifndef OPENSSL_NO_${lib}
361 int ossl_err_load_${lib}_strings(void);
366 if ($hpubinc{$lib} eq 'NONE') {
367 print OUT "\n/*\n * $lib reason codes.\n */\n";
372 $rassigned{$lib} =~ m/^:([^:]*):/;
374 $findcode = $rmax{$lib} if !defined $findcode;
375 while ( $rassigned{$lib} =~ m/:$findcode:/ ) {
379 $rassigned{$lib} .= "$findcode:";
406 if ($hpubinc{$lib} ne 'NONE') {
409 ? ($lib ne 'SSL'
413 my $hfile = $hpubinc{$lib};
444 # ifndef OPENSSL_NO_${lib}
451 # define ${lib}err(f, r) ERR_${lib}_error(0, (r), OPENSSL_FILE, OPENSSL_LINE)
460 int ERR_load_${lib}_strings(void);
461 void ERR_unload_${lib}_strings(void);
462 void ERR_${lib}_error(int function, int reason, const char *file, int line);
470 print OUT "\n/*\n * $lib reason codes.\n */\n";
475 $rassigned{$lib} =~ m/^:([^:]*):/;
477 $findcode = $rmax{$lib} if !defined $findcode;
478 while ( $rassigned{$lib} =~ m/:$findcode:/ ) {
482 $rassigned{$lib} .= "$findcode:";
498 if ($errorfile{$lib} ne 'NONE') {
500 my $cfile = $errorfile{$lib};
501 my $pack_lib = $internal ? "ERR_LIB_${lib}" : "0";
502 my $hpubincf = $hpubinc{$lib};
503 my $hprivincf = $hprivinc{$lib};
544 #ifndef OPENSSL_NO_${lib}
553 static ${const}ERR_STRING_DATA ${lib}_str_reasons[] = {
563 $i =~ /^${lib}_R_(\S+)$/;
584 int ossl_err_load_${lib}_strings(void)
587 if (ERR_reason_error_string(${lib}_str_reasons[0].error) == NULL)
588 ERR_load_strings_const(${lib}_str_reasons);
600 ${st}int ERR_load_${lib}_strings(void)
607 ERR_load_strings(lib_code, ${lib}_str_reasons);
614 ${st}void ERR_unload_${lib}_strings(void)
618 ERR_unload_strings(lib_code, ${lib}_str_reasons);
624 ${st}void ERR_${lib}_error(int function, int reason, const char *file, int line)