Lines Matching refs:lib

148         my $lib = $1;
152 $hpubinc{$lib} = $pubhdr;
153 $libpubinc{$pubhdr} = $lib;
154 $hprivinc{$lib} = $privhdr;
155 $libprivinc{$privhdr} = $lib;
156 $cskip{$err} = $lib;
157 $errorfile{$lib} = $err;
159 $rmax{$lib} = 100;
160 $rassigned{$lib} = ":";
161 $rnew{$lib} = 0;
211 my $lib = $name;
212 $lib =~ s/^((?:OSSL_|OPENSSL_)?[^_]{2,}).*$/$1/;
213 $lib = "SSL" if $lib =~ /TLS/;
214 if ( !defined $errorfile{$lib} ) {
219 next if $errorfile{$lib} eq 'NONE';
221 die "$lib reason code $code collision at $name\n"
222 if $rassigned{$lib} =~ /:$code:/;
223 $rassigned{$lib} .= "$code:";
225 $rmax{$lib} = $code if $code > $rmax{$lib};
237 foreach my $lib ( sort keys %rmax ) {
238 print STDERR "Reason codes for ${lib}:\n";
239 if ( $rassigned{$lib} =~ m/^:(.*):$/ ) {
292 foreach my $lib ( keys %errorfile ) {
293 next if ! $rnew{$lib} && ! $rebuild;
294 next if scalar keys %modules > 0 && !$modules{$lib};
296 print STDERR "$lib: $rnew{$lib} new reasons\n" if $rnew{$lib};
303 my @reasons = sort grep( /^${lib}_/, keys %rcodes );
313 ($lib ne "SSL" && $lib ne "ASYNC" && $lib ne "DSO"
314 && (grep { $lib eq uc $_ } @disablables, @disablables_int));
318 if ($hprivinc{$lib} ne 'NONE') {
319 my $hfile = $hprivinc{$lib};
356 # ifndef OPENSSL_NO_${lib}
362 int ossl_err_load_${lib}_strings(void);
367 if ($hpubinc{$lib} eq 'NONE') {
368 print OUT "\n/*\n * $lib reason codes.\n */\n";
373 $rassigned{$lib} =~ m/^:([^:]*):/;
375 $findcode = $rmax{$lib} if !defined $findcode;
376 while ( $rassigned{$lib} =~ m/:$findcode:/ ) {
380 $rassigned{$lib} .= "$findcode:";
407 if ($hpubinc{$lib} ne 'NONE') {
410 ? ($lib ne 'SSL'
414 my $hfile = $hpubinc{$lib};
445 # ifndef OPENSSL_NO_${lib}
452 # define ${lib}err(f, r) ERR_${lib}_error(0, (r), OPENSSL_FILE, OPENSSL_LINE)
453 # define ERR_R_${lib}_LIB ERR_${lib}_lib()
462 int ERR_load_${lib}_strings(void);
463 void ERR_unload_${lib}_strings(void);
464 void ERR_${lib}_error(int function, int reason, const char *file, int line);
472 print OUT "\n/*\n * $lib reason codes.\n */\n";
477 $rassigned{$lib} =~ m/^:([^:]*):/;
479 $findcode = $rmax{$lib} if !defined $findcode;
480 while ( $rassigned{$lib} =~ m/:$findcode:/ ) {
484 $rassigned{$lib} .= "$findcode:";
500 if ($errorfile{$lib} ne 'NONE') {
502 my $cfile = $errorfile{$lib};
503 my $pack_lib = $internal ? "ERR_LIB_${lib}" : "0";
504 my $hpubincf = $hpubinc{$lib};
505 my $hprivincf = $hprivinc{$lib};
546 #ifndef OPENSSL_NO_${lib}
555 static ${const}ERR_STRING_DATA ${lib}_str_reasons[] = {
565 $i =~ /^${lib}_R_(\S+)$/;
585 int ossl_err_load_${lib}_strings(void)
588 if (ERR_reason_error_string(${lib}_str_reasons[0].error) == NULL)
589 ERR_load_strings_const(${lib}_str_reasons);
601 ${st}int ERR_load_${lib}_strings(void)
608 ERR_load_strings(lib_code, ${lib}_str_reasons);
615 ${st}void ERR_unload_${lib}_strings(void)
619 ERR_unload_strings(lib_code, ${lib}_str_reasons);
625 ${st}void ERR_${lib}_error(int function, int reason, const char *file, int line)
633 ${st}int ERR_${lib}_lib(void)