Import OpenSSL-0.9.8i.
[dragonfly.git] / crypto / openssl-0.9.7d / doc / crypto / ERR_load_strings.pod
blob5acdd0edbc5e860a9dd943f51bfa762c255562d7
1 =pod
3 =head1 NAME
5 ERR_load_strings, ERR_PACK, ERR_get_next_error_library - load
6 arbitrary error strings
8 =head1 SYNOPSIS
10  #include <openssl/err.h>
12  void ERR_load_strings(int lib, ERR_STRING_DATA str[]);
14  int ERR_get_next_error_library(void);
16  unsigned long ERR_PACK(int lib, int func, int reason);
18 =head1 DESCRIPTION
20 ERR_load_strings() registers error strings for library number B<lib>.
22 B<str> is an array of error string data:
24  typedef struct ERR_string_data_st
25  {
26         unsigned long error;
27         char *string;
28  } ERR_STRING_DATA;
30 The error code is generated from the library number and a function and
31 reason code: B<error> = ERR_PACK(B<lib>, B<func>, B<reason>).
32 ERR_PACK() is a macro.
34 The last entry in the array is {0,0}.
36 ERR_get_next_error_library() can be used to assign library numbers
37 to user libraries at runtime.
39 =head1 RETURN VALUE
41 ERR_load_strings() returns no value. ERR_PACK() return the error code.
42 ERR_get_next_error_library() returns a new library number.
44 =head1 SEE ALSO
46 L<err(3)|err(3)>, L<ERR_load_strings(3)|ERR_load_strings(3)>
48 =head1 HISTORY
50 ERR_load_error_strings() and ERR_PACK() are available in all versions
51 of SSLeay and OpenSSL. ERR_get_next_error_library() was added in
52 SSLeay 0.9.0.
54 =cut